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:
2.1m questions
2.1m answers
60 comments
57.0k users