O'Reilly logo

Windows PowerShell in Action, Third Edition by Bruce Payette Richard Siddaway

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

Chapter 15. Debugging

This chapter covers

  • Creating script instrumentation
  • Capturing session output
  • The PowerShell debugger
  • Command-line debugging
  • Debugging PowerShell jobs, runspaces, and remote scripts

Big Julie: “I had the numbers taken off for luck, but I remember where the spots formerly were.”

Guys and Dolls, words and music by Frank Loesser

No one writes code that always works correctly the first time it’s run. When the worst happens and your code won’t run, or deliver the correct results, you need to debug it to find the problem or problems. Start by adding statements that track your code’s execution and capture session output and then move on to more advanced techniques using the PowerShell debugger on running code. The techniques ...

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