DEV Community

Discussion on: How do you help yourself fix bugs?

ben profile image
Ben Halpern

If the bug, or fickle feature, is really bad I know that time away will help. But it might not even mean that I have to step away immediately. I can keep at it a bit, kind of leave myself clues for tomorrow me who gets to see it with fresh eyes.

If I don't have the luxury of time I take a quick walk and then zone in to full-on reading mode. I just read like crazy on the web, hopefully finding new knowledge I was missing. Then I go back to trying to solve the problem.

In terms of more specific strategy, it's all about isolating variables. A lot of the time this means removing lines or finding ways to isolate the code, and then adding lines back in until the error pops back up.