I alternate between "I am the best programmer to ever exist" and "I am completely incompetent at this and I should quit" while debugging.
"Research shows" (I read long ago) that the happiest men are those take their wives' advice — that's certainly been true for my own N=1, for coming up on four decades now. I'd imagine we could replace "wives" with "spouses" and get comparable results.
Haven’t you just risked an infinite loop in your code?