Created
September 8, 2014 22:38
-
-
Save vasil/4840bc3ea4c81e7a3b71 to your computer and use it in GitHub Desktop.
Debugger on Ctrl-C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import signal | |
def int_handler(signal, frame): | |
import pdb | |
pdb.set_trace(frame) | |
signal.signal(signal.SIGINT, int_handler) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment