~/talk

Back to Basics: Debugging in Cpp

name:Greg Law
linkedin:gregthelaw
slides:none on file

Claims concrete debugging wins: use GDB (layout source, pretty‑printers, GDB dashboard, dynamic printf) for stepping and core inspection, run Valgrind when you can (heavy but no recompile), enable AddressSanitizer in CI (catch one‑past‑end and UB cheaply, ~2–3x slowdown), use thread sanitizer for races, add assertions and prefer panic unless error paths are tested, and try time‑travel recording to reverse‑step nondeterministic failures. The demos actually reproduce a buffer overflow, locate the stray write, and show fixes plus regression tests.

AI-written summary · about

  1. 0:00Welcome
  2. 3:59Debugging advice
  3. 20:21Linux debugging tools
  4. 38:09GDB and LLDB deep dive
  5. 47:27Valgrind and sanitizers
  6. 50:22System call tracing
  7. 54:36Time travel debugging
  8. 1:00:00Q&A
~/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.