~/talk

Take your PowerShell to the next level with error handling and debugging

links:none on file
slides:none on file

Demos show how PowerShell actually surfaces errors: exploring $Error and $ErrorView modes, using $? and $ErrorActionPreference to turn non‑terminating failures into error action stop, and choosing between throw and Write-Error. Examples include catching specific exception types, collecting per‑item failures, and a live VSCode debugging session with breakpoints and step into of a module that gets fixed on the spot, proving the techniques work end‑to‑end.

AI-written summary · about

  1. 0:00PowerShell error handling intro
  2. 1:56Common PowerShell errors
  3. 2:57$Error automatic variable
  4. 6:06Error details and properties
  5. 11:01Terminating vs non-terminating errors
  6. 12:24ErrorActionPreference impact
  7. 22:15Try-catch blocks
  8. 24:41Catching specific exceptions
  9. 30:23Throw vs Write-Error
  10. 34:14Per-item error handling
  11. 37:25Debugging with VS Code
  12. 43:48Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.