Debug a defect systematically — reproduce, isolate, instrument, hypothesize, fix, and add a regression test — instead of guessing and changing code at random. Use when facing a bug whose cause isn't obvious, an intermittent failure, or a "works on my machine" report.