Skip to content

Instantly share code, notes, and snippets.

@vasil
Created September 8, 2014 22:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vasil/4840bc3ea4c81e7a3b71 to your computer and use it in GitHub Desktop.
Save vasil/4840bc3ea4c81e7a3b71 to your computer and use it in GitHub Desktop.
Debugger on Ctrl-C
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