O'Reilly logo

Windows PowerShell 4.0 for .NET Developers by Sherif Talaat

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Script debugging and error handling

In the previous chapter, we mentioned that PowerShell supports script debugging for both local and remote scripts. The debugging feature in PowerShell is like that in other programming languages. It allows you to toggle breakpoints, step into, step out, step over, and even call the stack. The script debugging is available in the PowerShell console host via cmdlets and in PowerShell ISE via GUI and cmdlets.

The debugging feature in PowerShell ISE is available under the Debug tab, as shown in the following screenshot:

Script debugging and error handling

Windows PowerShell also provides a set of cmdlets that allow you to perform a debugging operation ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required