Skip to Content
Windows PowerShell™ 3.0 Step by Step
book

Windows PowerShell™ 3.0 Step by Step

by Ed Wilson
February 2013
Beginner content levelBeginner
704 pages
21h 31m
English
Microsoft Press
Content preview from Windows PowerShell™ 3.0 Step by Step

Chapter 18. Debugging Scripts

After completing this chapter, you will be able to:

  • Use the Write-Debug cmdlet to provide detailed information from a script.

  • Use the Set-StrictMode cmdlet to prevent errors during development.

  • Understand how to work with the Windows PowerShell debugger.

Understanding debugging in Windows PowerShell

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 Microsoft 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. Therefore, you might want to review Chapter 5, Chapter 6 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Windows Server™ 2003 Inside Out

Microsoft® Windows Server™ 2003 Inside Out

William R. Stanek
Windows PowerShell® 2.0 Bible

Windows PowerShell® 2.0 Bible

Thomas Lee, Karl Mitschke, Mark E. Schill, Tome Tanasovski

Publisher Resources

ISBN: 9780735669970Purchase book