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

23.1. An easy guide to eliminating bugs

There are two broad ...

Get Learn Windows PowerShell in a Month of Lunches now with O’Reilly online learning.

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