Manuals / Problem Solving / Ch 5

B · ExperimentIntermediate35 min read

5. Systematic debugging

Problem Solving · 36 pages source format

Reproduce → isolate → fix → verify. Change one variable at a time. Binary search through git history.

What you'll learn

  • Reproduce first
  • Binary search
  • One change rule

Reproduction script

If you cannot reproduce it, you cannot verify the fix.

Do this now

Write minimal steps to reproduce a recent bug.

Clear?

Git bisect

Find the commit that introduced a regression.

Do this now

Run git bisect on a known good/bad pair (or simulate with log reading).

Clear?

Checklist