This chapter covers
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 ...