Here is a collection of tips and tricks to debug PowerShell Read Up There is a 7-part series of “ Debugging Monad Scripts ” that Jon Newman wrote a few years ago that covers a lot of tips, including error handling, traps, tracing, and covers a lot of V1 stuff. Clean code The best route, is to make sure code is clean, and common errors are caught. To do so, run Set-StrictMode -Version 2 Note, there
Read More...
Read the complete post at http://blogs.msdn.com/powershell/archive/2009/07/13/advanced-debugging-in-powershell.aspx
Posted
Jul 13 2009, 05:18 PM
by
Windows PowerShell Blog