So you think you can PDB?
summary
Practical walkthrough of using PDB: how to drop into a running program with import pdb; pdb.set_trace(), or start a script under the debugger with python -m pdb; core commands covered include next/step/return/continue, listing and longlist, printing with p/pp, navigating frames with where/up/down, and managing breakpoints including conditional breakpoints. Notes limits (cannot step into C extensions), tricks to avoid name-command collisions (!prefix), and alternatives like ipdb, remote-pdb, and pdb++ with sticky mode.
AI-written summary · about
chapters (11)
- 0:00Introduction to PDB
- 1:58Invoking the debugger
- 5:05Basic PDB commands
- 7:33Inspecting code state
- 11:28Navigating code execution
- 14:28Advanced navigation tools
- 19:04Managing control flow
- 22:27Breakpoints and conditions
- 28:35Stack navigation
- 31:45Python 3 features and exit
- 35:41Tools, config, and questions
related talks
31mGoodbye Print, Hello Debugger!
15mGive me 15 minutes & I'll change your view of GDB
41mAdvanced Python Debugging Techniques Using GDB
59m“GDB - A Lot More Than You Knew"
23mTrace functions: Building a tiny debugger
52mGetting the Most Out of GDB
50mExtending GDB debugger capabilities with Python
29mGoodbye Print Statements, Hello Debugger!
