Chapter 7 of 10All chapters
Chapter 7 of 10
Narrowing it down
Halving the search space.
Bisecting
If it worked last month, find the commit that broke it. git bisect turns a thousand commits into about ten checks, and the answer usually explains itself.
- Bisect the data too: remove half the input and see if the failure survives.
- Comment out half the code, or disable half the config, on the same principle.
One change at a time
Changing three things and seeing the bug disappear teaches you nothing about which one mattered. Revert everything that did not help before moving on.