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.
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: