~/talk

Hunting the Bugs

Talkat PyCascades 2019 · 2019-02-23..02-24· [python, testing]
slides:none on file

Advice is: write a failing integration test before touching code so the bug can’t silently return; start at the bottom of the stacktrace to find the exception and trace callers; use PDB breakpoints to stop midrun — remember pdb w prints the stack so you can inspect call context; concrete gotcha shown is a function that turns a number into a string causing a division error because bad_function mangles the type; when searching for fixes add a 3 to searches to avoid Python 2 results.

AI-written summary · about

  1. 0:00Start
  2. 0:02HUNTING THE BUGS MARIA MCKINLEY
  3. 2:38WRITE AN INTEGRATION TEST THAT FAILS
  4. 11:50PUT A BREAK POINT IN CODE YOU BELIEVE YOUR TEST SHOULD PASS THROUGH
  5. 13:04LEAVE THE BREAKPOINT IN, USE A SIMILAR TEST
  6. 14:13ALWAYS SUSPECT YOUR OWN CODE FIRST
~/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.