When I'm feeling frustrated by a bug, I take a break and come at it later. When I do come back to it, I often first read through my code like I was explaining it to someone, and see if something doesn't make sense. Doesn't work 100% of the time, but its found more than a few bugs for me.
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.