Follow a systematic approach:
1. Reproduce the bug consistently
2. Isolate the problem area
3. Form a hypothesis
4. Test your hypothesis
5. Fix and verify
Don't randomly change code hoping it works. Understand the bug first.
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
##### ###### ##### ### # # ### # # ###### ## ## ## ## ## ## ## # # # # # ## ##### #### ##### # # # # # # # #### ## # ## ## ## ## # # # # # ## ## # ###### ## ### # ### # ######
Systematic bug hunting
Follow a systematic approach:
1. Reproduce the bug consistently
2. Isolate the problem area
3. Form a hypothesis
4. Test your hypothesis
5. Fix and verify
Don't randomly change code hoping it works. Understand the bug first.