Free practice · ordering · medium

Practice

Debug a reproducible failure

Order a disciplined debugging workflow.

Evidence-led debugging

Change code only after the failure and cause are reproducible

  1. ReproduceCapture exact observed behavior
  2. ClassifySyntax, runtime, or logic
  3. IsolateReduce input and inspect state
  4. HypothesisTest one possible cause
  5. FixChange the proven cause only
  6. VerifyRerun and retain regression tests

A focused debugging record connects exact inputs, observed state, one falsifiable hypothesis, a minimal change, and regression evidence.

Arrange in the correct order
  1. 1. Fix, retest, and add regression coverage
  2. 2. Test one cause hypothesis
  3. 3. Reduce it and inspect relevant state
  4. 4. Reproduce the failure consistently