Chapter 9. Errors, exceptions, and script debugging

9.1

Error handling

252

9.2

Dealing with errors that terminate execution

265

9.3

Script debugging

270

9.4

Nested prompts and breakpoints

277

9.5

Low-level tracing

283

9.6

The PowerShell event log

291

9.7

Summary

293

 

Progress, far from consisting in change, depends on retentiveness. Those who cannot remember the past are condemned to repeat it.

 
 --George Santayana, The Life of Reason
 

Big Julie: I had the numbers taken off for luck, but I remember where the spots formerly were.

 
 --Guys and Dolls, words and music by Frank Loesser

It’s important to keep in mind that PowerShell is not “just” a shell or scripting language. Its primary purpose is to be an automation tool for managing Microsoft Windows. And when you’re depending ...

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