~/talk

What You Need To Know About Python Debugging

Talkat Python Web Conf 2021 · 2021-03-22..03-26· [python, developer-experience]
links:none on file
slides:none on file

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

  1. 0:00Start
  2. 20:26Hidden Bugs
  3. 28:31Wrap a Number in the Iterator
  4. 33:42Unicode Decode Error
  5. 37:23Tracebacks
  6. 38:10Print Statement
  7. 40:49How Do You Convert an Integer to a String
  8. 43:31Python Debug
  9. 47:17List
  10. 53:45Move Your Breakpoints
  11. 55:10Pdb Driven Debugging Development
  12. 1:01:20Alternatives to Pdb
  13. 1:01:42Pdb Enhancements
  14. 1:04:51Pdb Plus Plus
  15. 1:08:52The Python Stack
  16. 1:11:58Display Command
  17. 1:16:55Conditional Breakpoint
  18. 1:20:39Flask
  19. 1:26:24Use Pdb Plus Plus in a Docker Container
  20. 1:28:34List Indexes
  21. 1:33:45Jump Statement
  22. 1:37:19Run Flask in Debug Mode
  23. 1:39:30Debug in the Browser
  24. 1:40:39Jump Feature
  25. 1:45:25Postmortem Debugging
  26. 1:48:09Trigger Debugging
  27. 1:49:18Create a Conditional Break Point
  28. 2:06:43The Debug Statement
  29. 2:16:19Chameleon
  30. 2:17:40Closing Remarks
  31. 2:28:17Stack Trace
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.