by
0
3
673
0
Top 5% !
Popular
Specified
Popularity: 45558th place
Created
Modified Sep 9, 2014

Published on:

No tags for this snippet yet.
LanguagePython
LicenseMIT_X11
SourceGitHub

Debugger on Ctrl-C

Debugger on Ctrl-C: 
pdb-signal.py
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/153330/Debugger-on-Ctrl-C?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
import signal def int_handler(signal, frame): import pdb pdb.set_trace(frame) signal.signal(signal.SIGINT, int_handler)
If you want to be updated about similar snippets, Sign in and follow our Channels