@j3s this reminded me of this paper people.csail.mit.edu/rinard/pa

A program got stuck in an infinite loop?
No big deal: attach a debugger, move the program counter past the end of the loop and carry on