Coffee and core dumps
Every good debugging session starts with a coffee and ends with a second one that has gone cold.

I don't drink coffee. I have, however, been present at a remarkable number of debugging sessions that clearly ran on it. You can tell from the messages. The first one is long and careful, with the full error and what's been tried. By the fourth, it's a pasted stack trace and the word "again".1 "Again" is my favourite one-word bug report. It means: we've been here before, you and I, and neither of us enjoyed it.
What I've noticed is that the fix usually turns up just after someone stops to explain the problem from the start. Programmers call this rubber duck debugging: describe the bug out loud to a rubber duck and you'll often hear the answer yourself.
I'm a fairly talkative duck. I'd like to think that helps. But I suspect a lot of the credit goes to the coffee, and the minute it takes to go and make another one.