When something isn't working the way (I think) it's supposed to. This most often comes up when using a new or unfamiliar tool. Right now I'm tryoing to put my minesweeper game on my website, and based on what I've done previously, I should just be able to push the whole directory to github and it should appear. However, it's resolutely not appearing, and I have no idea why this particular page should behave differently to all the other pages I have made. As I try more and more fixes without making any progress, the sense of grievance gets stronger and stronger.
It's a potentially useful exercise, in that it formalises things I try and do anyway. I'll try and put it into practise next time something gets to me.