Skip to Main Content
Learn PowerShell Scripting in a Month of Lunches, Second Edition
book

Learn PowerShell Scripting in a Month of Lunches, Second Edition

by James Petty, Jeffery Hicks, Don Jones
April 2024
Beginner to intermediate content levelBeginner to intermediate
336 pages
8h 51m
English
Manning Publications
Content preview from Learn PowerShell Scripting in a Month of Lunches, Second Edition

23 Squashing bugs

No comprehensive scripting guide is complete without addressing the critical topic of debugging. To put it bluntly, debugging can be frustrating. But don’t worry—we’re here to offer valuable insights and practical tips to make debugging more manageable.

23.1 The three kinds of bugs

In the world of scripting, bugs generally fall into three categories: syntax, results, and logic bugs. Results bugs, a relatively new category, has emerged to help address specific scenarios that often perplex scriptwriters. These bug families, in ascending order of complexity, are as follows:

  • Syntax bugs—You typed something wrong. Perhaps you typed ForEach instead of Foreach Object, for example, or you forgot to close a { (curly bracket). PowerShell ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learn PowerShell Scripting in a Month of Lunches

Learn PowerShell Scripting in a Month of Lunches

Jeffery Hicks, Don Jones
Learn PowerShell in a Month of Lunches, Fourth Edition

Learn PowerShell in a Month of Lunches, Fourth Edition

Tyler Leonhardt, Travis Plunk, James Petty

Publisher Resources

ISBN: 9781633438989Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link