Entomology 101: Effective Bug Hunting
summary
Live demos show django-debug-toolbar surfacing SQL statements and a Postgres query plan, an IPython embed dropping to a shell so a context variable is added and the page continues, and using pdb/ipdb versus interactive shells for variable inspection. Logging is exercised end-to-end: stdout logging for containers, logbook as a faster alternative, and structlog for JSON/structured output. Workflow tips include divide-and-conquer, start from a clean slate, and change only one thing at a time.
AI-written summary · about
chapters (6)
- 0:00The bug hunting mindset
- 2:45Using Django debug toolbar
- 4:48Debugging with IPython shells
- 8:16The importance of logging
- 11:00Problem solving techniques
- 12:57Q&A and closing thoughts
related talks
04mWhat Bug Hunting Taught Me About Hunting Bugs
18mHunting the Bugs
29mPeering into the black box: tips for visualizing your program's behavior
39mAdventures in Bug Hunting
35mHello Bug, My Old Friend
28mGoodbye Print, Hello Debugger!
34mHow to Debug Anything
23mDebugging that bugger : Cleanly handling the errors
