Chapter 13. Debugging scripts

No one enjoys debugging scripts. In fact, the best debugging is no debugging. It is also true that well written, well formatted, well documented, and clearly constructed Windows PowerShell code requires less effort to debug than poorly formatted, undocumented spaghetti code. It is fair to say that debugging begins when you first open the Windows PowerShell ISE.

Understanding debugging in Windows PowerShell

If you can read and understand your Windows PowerShell code, chances are you will need to do very little debugging. But what if you do need to do some debugging? Well, just as excellent golfers spend many hours practicing chipping out of the sand trap ...

Get Windows PowerShell 3.0 First Steps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.