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 ...
Get Learn PowerShell Scripting in a Month of Lunches now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.