O'Reilly logo

Windows PowerShell™ 3.0 Step by Step by Ed Wilson

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

Using the Set-PSDebug cmdlet

The Set-PSDebug cmdlet was available in Windows PowerShell 1.0, it did not change in Windows PowerShell 2.0, and it remains the same in Windows PowerShell 3.0. This does not mean it is a neglected feature, but rather that it does what it needs to do. For performing basic debugging quickly and easily, you cannot beat the combination of features that are available. There are three things you can do with the Set-PSDebug cmdlet: you can trace script execution in an automated fashion, step through the script interactively, and enable strict mode to force good Windows PowerShell coding practices. Each of these features will be examined in this section. The Set-PSDebug cmdlet is not designed to do heavy debugging; it is ...

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