~/talk

Become a PowerShell Debugging Ninja

Talkat PowerShell + DevOps Global Summit 2018 · 2018-04-09..04-12· [testing]
links:none on file
slides:none on file

Lots of concrete debugging moves and the exact tooling to try them: inspect $Error (he primes it with 20 errors), use Format-List -Force to reveal Exception and InnerException, group/sort $Error to find the most common or first error, wrap functions in try/catch and rethrow with the caller’s ErrorActionPreference preserved, set conditional breakpoints with set-PSBreakpoint, use wait-debugger / debug job / enter-pshostprocess for remote runspaces, and install debugpx for niceties that actually work in demos.

AI-written summary · about

  1. 0:00Introduction
  2. 2:35Questions
  3. 4:50Change the Error Message Color
  4. 6:35Clear the Error Variable
  5. 7:50The Bottom View
  6. 9:30Force
  7. 10:10Script Stack Trace
  8. 11:30Exception
  9. 12:30Inner Exceptions
  10. 13:40Stack Trace
  11. 14:45Exceptions
  12. 16:15Why Format
  13. 19:15Clear Error Stack
  14. 20:00Traces
  15. 21:30Error Handling
  16. 24:30Trap
  17. 25:10Joel Bennet
  18. 29:10TerminateError
  19. 39:30Invocation Info
  20. 40:55Error Record
  21. 42:50Soft Skills
  22. 43:10Functions
  23. 44:35Naked Catch Statements
  24. 45:15Debugging
  25. 47:35Debugging Commands
  26. 55:10SetPSBreakpoint
  27. 56:20Step Into
  28. 57:55Run
~/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.