Debugging that bugger : Cleanly handling the errors
summary
Explains how to read Python tracebacks, use try/except to catch specific errors, and when to raise your own exceptions; demonstrates why a bare except or catching Exception hides real bugs with concrete code samples. Shows using assert as a development-only sanity check that should fail fast and can be disabled, and demos the CLI debugger via pdb.set_trace() with stepping commands (n, s, p) so breakpoints and interactive inspection actually locate the failing line.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 0:34Traceback
- 4:45Raise Exception
- 11:45Assertions
- 14:12Things to keep in mind
- 16:11Python CLI debugger
- 17:13Setting breakpoint
- 18:32Stepping through your code








