What You Need To Know About Python Debugging
summary
Shows three concrete examples: a tiny script, a Flask app and a Plone site, and demonstrates actual fixes rather than theory. Uses tracebacks, print debugging, then drops into the debugger with breakpoints and pdb++ (syntax highlighting, ll, jump, until). Shows how to set a conditional breakpoint, use jump/step/continue, run python -m pdb -c continue for postmortem debugging, and inspect locals/stack frames to find type errors, memory errors and why an API response isn’t the expected dict.
AI-written summary · about
chapters (31)
- 0:00Start
- 20:26Hidden Bugs
- 28:31Wrap a Number in the Iterator
- 33:42Unicode Decode Error
- 37:23Tracebacks
- 38:10Print Statement
- 40:49How Do You Convert an Integer to a String
- 43:31Python Debug
- 47:17List
- 53:45Move Your Breakpoints
- 55:10Pdb Driven Debugging Development
- 1:01:20Alternatives to Pdb
- 1:01:42Pdb Enhancements
- 1:04:51Pdb Plus Plus
- 1:08:52The Python Stack
- 1:11:58Display Command
- 1:16:55Conditional Breakpoint
- 1:20:39Flask
- 1:26:24Use Pdb Plus Plus in a Docker Container
- 1:28:34List Indexes
- 1:33:45Jump Statement
- 1:37:19Run Flask in Debug Mode
- 1:39:30Debug in the Browser
- 1:40:39Jump Feature
- 1:45:25Postmortem Debugging
- 1:48:09Trigger Debugging
- 1:49:18Create a Conditional Break Point
- 2:06:43The Debug Statement
- 2:16:19Chameleon
- 2:17:40Closing Remarks
- 2:28:17Stack Trace
