Chapter 23. Debugging techniques

Anytime you’ve typed more than two letters on your keyboard, you have created an opportunity for mistakes to creep in. In the programming world, those mistakes are called bugs. Although using PowerShell isn’t necessarily programming, we PowerShell jockeys use the word bug, too.

Fun story: The word bug, as applied to computers behaving incorrectly, actually came from a real insect (a moth) that got trapped inside Harvard University’s Mark II Aiken Relay Calculator. The moth got stuck in one of the computer’s relays, causing the computer to generate incorrect results. The whole story is told at http://www.jamesshuggins.com/h/tek1/first_computer_bug.htm.

23.1. An easy guide to eliminating bugs

There are two broad ...

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