~/talk

Goodbye Print, Hello Debugger!

Talkat PyCon US 2020 · 2020-04-15..04-23· [developer-experience]
slides:none on file

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

  1. 0:00Intro
  2. 1:16WHAT YOU'LL LEARN TODAY
  3. 2:09CALL API & GET JSON
  4. 7:52COMMAND LINE DEBUGGERS
  5. 9:08CLI BREAKPOINTS IN PYTHON
  6. 9:495 MOST IMPORTANT COMMANDS
  7. 14:04GRAPHICAL DEBUGGERS
  8. 14:25PYTHON EXTENSION FOR VS CODE
  9. 14:54VISUAL BREAKPOINTS
  10. 20:52WHEN TO USE WHAT?
  11. 22:02TRICK: IPYTHON INTERACTIVE MODE ALIAS IN POBRC
  12. 25:57TIP: USE git pre-commit HOOKS
~/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.