DEV Community

Discussion on: What's the best thing to do when you've run into a debugging dead end?

Collapse
 
fossheim profile image
Sarah

Take a break. I either:

  • Go for a walk
  • Work on another issue
  • Get coffee/water and take a social break
  • Have some food

And then when returning to it with an empty head, I sometimes start from scratch again depending on the issue.

Also breaking the problem down in separate tasks, and logging everything along the way. And when things are split up properly, comment out everything and try each function by itself.