In gdb, you can interrupt(pause) the program by C-c and resume.
Can you do this in pdb?
No, python2's pdb doesn't support this, but you add this code to your program as a workaround:
def debug_signal_handler(signal, frame): import pdb pdb.set_trace() import signal signal.signal(signal.SIGINT, debug_signal_handler)
Related questions:
1.4m articles
1.4m replys
5 comments
57.0k users