O'Reilly logo

Learn PowerShell Scripting in a Month of Lunches by Don Jones and Jeffery Hicks

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 23. Squashing bugs

No book on scripting could be complete without at least a quick word on debugging. So here it goes: “Debugging sucks.” There you are: Two words on debugging. Actually, although debugging does suck, we have quite a few more words to share on the topic, along with some solid tips for making debugging easier on you. Let’s dive in.

23.1. The three kinds of bugs

We tend to categorize bugs as syntax, results, or logic bugs. We used to focus on syntax and logic bugs, but we recently added results bugs to the mix to identify a particular type of vexing situation and help people work past it. In order of increasing complexity, these bug families work like this:

  • Syntax bugs— You typed something wrong. Perhaps you typed ...

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