Goodbye Print, Hello Debugger!
summary
Advocates ditching print debugging in favor of real debuggers, claiming measurable speedups after switching: about 40% of the audience already used PDB/IPDB while only a handful use IDE tools. Demonstrates a simple Flask app that queries the GitHub API and inserts a breakpoint method (Python 3.7) to inspect the JSON; shows IPDB on the CLI, VS Code graphical debugger, Jupyter cell debug, and a pre-commit hook that prevents committed breakpoints.
AI-written summary · about
chapters (8)
- 0:00Start
- 8:06A DEBUGGER HELPS YOU EXAMINE THE STATE OF A RUNNING PROGRAM
- 10:46TYPES OF DEBUGGERS
- 12:23PYTHON 3.7? USE breakpoint
- 25:161. Download VS Code 2. Install Python Extension 3. Create a Debugger Configuration
- 25:47WHEN TO USE WHAT?
- 26:24TIPS & TRICKS
- 28:57DON'T LEAVE BREAKPOINTS IN PRODUCTION CODE!
related talks
29mGoodbye Print Statements, Hello Debugger!
28mGoodbye Print, Hello Debugger!
29mLiberating the Debugging Experience with the GDB Python API
15mGive me 15 minutes & I'll change your view of GDB
40mSo you think you can PDB?
59m“GDB - A Lot More Than You Knew"
51mProgramming is Debugging
52mGetting the Most Out of GDB
