Reproduce first
If you cannot reproduce, you cannot verify a fix. Write the smallest steps. Note environment, browser, and data.
Bisect the blast radius
Change one variable at a time. Binary search commits when a regression is recent. Console.log with labels beats random guessing.
Leave a tripwire
Add a test or assertion so the bug cannot return silently. Documentation in the PR helps the next person.
#debugging#process