Module 16 · Undefined Behaviour, Debugging and Reading Real C
Debugging: printf, gdb, Sanitizers and a Method
ProReading
Kenji's bubble sort put a price nobody typed at the top of David's price list. Bob hunted all day, reading the loops line by line for an off-by-one, and found nothing.
Checking what this lesson needs for you…
What is inside Debugging: printf, gdb, Sanitizers and a Method
- Zara's method, one step at a time
- Halving Kenji's bubble sort
- Printing to find a bug, done right
- gdb: stop the program and look inside
- Sanitizers: two checkers in one build
- What the Playground tells you
- Explain it to a duck