~/talk

So you think you can PDB?

Talkat PyOhio 2014 · 2014-07-26..07-27· [python, developer-experience]
links:none on file
slides:none on file

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

  1. 0:00Introduction to PDB
  2. 1:58Invoking the debugger
  3. 5:05Basic PDB commands
  4. 7:33Inspecting code state
  5. 11:28Navigating code execution
  6. 14:28Advanced navigation tools
  7. 19:04Managing control flow
  8. 22:27Breakpoints and conditions
  9. 28:35Stack navigation
  10. 31:45Python 3 features and exit
  11. 35:41Tools, config, and questions
~/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.