Chapter 11. Debugging techniques
Debugging can be one of the most frustrating parts of toolmaking, and we feel it’s often because folks don’t have a consistent, methodical approach to debugging. That’s what we’re going to offer you in this chapter. We’ll even make a promise: If you follow our recommendations, you’ll find debugging to be infinitely less frustrating. We’ll even walk you through some real-life debugging examples to help drive home the point.
11.1. Two types of bugs
We feel that the entire universe of software bugs, at least the PowerShell universe, essentially comes down to one of two types: typos and logic errors.
Typos are straightforward enough: They’re what happen when you type something wrong. Maybe it’s a command name. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access