Chapter 26. Debugging Tips, Tools, and Techniques


Face it: Bugs happen. Even the best scripter in the world manages to squeeze a bug or two into a script every now and then. Obviously, one goal while writing a script should be to prevent the bugs you can, and I’ll share some tips for doing so. However, bugs are pernicious, and you’re going to have to spend time hunting them down and eliminating them. What I want to do, then, is show you some ways to make debugging more efficient and effective, so that you don’t have to spend any more time doing it than is absolutely necessary.

Types of Bugs

There are really only two types of bugs, or errors, in the world: syntax ...

Get VBScript, WMI, and ADSI Unleashed: Using VBScript, WMI, and ADSI to Automate Windows® Administration now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.