Free practice · ordering · medium

Practice

Test one debugging hypothesis

Order the steps for testing one proposed cause of a reproducible defect.

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. Accept or reject the hypothesis from the result
  2. 2. Rerun the same minimal case
  3. 3. Change or inspect one relevant factor
  4. 4. State one specific cause that evidence could disprove
  5. 5. Record the failure and relevant state