~/talk

Best Practices for Debugging

Talkat PyData Berlin 2017 · 2017-06-23..06-25· [testing, python]
links:none on file
slides:none on file

A hands‑on course that walks through a broken Python pipeline parsing UniProt‑style FASTA files and shows concrete fixes: a missing colon causing a syntax error, a FileNotFound, a missing yield that drops the last record, stray newline/X characters that break an assertion, and a misplaced indentation. Demonstrates tools and tactics used: print debugging, pdb/ipdb with conditional breakpoints and assertions, linters, small unit inputs, bisection/Delta debugging, pandas and logging for larger pipelines. The example program is repaired step‑by‑step and ends with passing assertions and readable output.

AI-written summary · about

  1. 0:00Python debugging intro
  2. 3:59Fixing Python syntax errors
  3. 6:05Handling Python runtime exceptions
  4. 10:47Debugging silent failures
  5. 12:36Print statements for debugging
  6. 15:50Scientific method in debugging
  7. 21:34Talking through problems
  8. 31:26Assertions for data consistency
  9. 33:45Interactive debugging with pdb
  10. 51:05Manual unit testing
  11. 1:01:46Advanced debugging techniques
  12. 1:11:34Logging for large programs
  13. 1:25:08Debugging is tiresome
~/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.