Goodbye Print, Hello Debugger!
summary
Claim: giving up print statements measurably increases debugging productivity. Demonstration uses a simple Flask app calling the GitHub Search API that returns 30 items; command-line tools shown include pdb and IPDB and Python 3.7’s breakpoint(); a live interactive session discovers the repo star key stargazers_count via tab completion. IDE techniques include VS Code visual and conditional breakpoints, jump-to-cursor, debugging Jupyter cells, IPython interact shells, and a pre-commit hook to block stray breakpoints.
AI-written summary · about
chapters (12)
- 0:00Intro
- 1:16WHAT YOU'LL LEARN TODAY
- 2:09CALL API & GET JSON
- 7:52COMMAND LINE DEBUGGERS
- 9:08CLI BREAKPOINTS IN PYTHON
- 9:495 MOST IMPORTANT COMMANDS
- 14:04GRAPHICAL DEBUGGERS
- 14:25PYTHON EXTENSION FOR VS CODE
- 14:54VISUAL BREAKPOINTS
- 20:52WHEN TO USE WHAT?
- 22:02TRICK: IPYTHON INTERACTIVE MODE ALIAS IN POBRC
- 25:57TIP: USE git pre-commit HOOKS
related talks
31mGoodbye Print, Hello Debugger!
29mGoodbye Print Statements, Hello Debugger!
51mProgramming is Debugging
29mLiberating the Debugging Experience with the GDB Python API
28mInstant-feedback, instant-debugging Python coding
15mGive me 15 minutes & I'll change your view of GDB
38mFrom the Exorcist to Hercule Poirot
52mGetting the Most Out of GDB
