Sleep a little bit more. You'll squash your current bugs and have less of them to deal with in the next few days
I can definitely relate with this one. Stepping away from your code (not necessarily sleeping), keeps you fresh and gives you a new angle of analyzing that stubborn bug.
I'd extend that to looking after yourself in general - getting enough to eat, drink, exercise and, as you rightly say, sleep! No code is worth losing your health & wellbeing over!
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.