


We can also see the variable values in the variable window. We can see thecursor highlighting at the break point and we can mouse over on the variables to see the values. Here I would like to discuss briefly about how easy it is to debug PowerShell scripts in PowerGUI by taking some simple example of adding two numbers.Ĭopy the above code in PowerGUI script editor and insert a break point.Įnter the parameters in the specified text box and click on the start debugging button. You can find the tutorials and power packs from the following URL’s. SharePoint developers/admins have few power packs to write the PowerShell scripts. There are some Power Packs available to download to write the powershell scripts easily. You can download PowerGUI editor from the following URL – PowerGUI is an open source editor and it is really easy for debugging and writing PowerShell scripts. I started some research on the internet for some time and then I found a tool called “PowerGUI” editor. I am relatively new to PowerShell scripts. This PowerShell script is written to do some tasks in SharePoint. The PowerShell is written by somebody on the project and the script is around 340 lines of code. Recently I got a task from my project manager to fix some “PowerShell” scripts in one day.
