If I can't fix a problem, that means I didn't look well enough and I am the one to blame (after the person who made that issue in the first place).
I do swear from time to time, but not aggressively and not loudly. I think it helps me focus a little bit.
Something like "and here we go again, same crap again, nobody learns or what?!" and that's it.
Also, you could say debugging is like a boss in Darksouls, the harder it is, as far as you don't give up, the more rewarding it gets ;)