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. ...
Get Learn PowerShell Toolmaking 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.