Python interpreter: interrupt and continue

After I interrupt execution in the Python interpreter (using CTRL-BREAK on Windows), can I continue execution?

If not, is there another way to interactively pause execution (so that I can view the values โ€‹โ€‹of variables) and then continue?

I prefer not to use the debugger, because it is much slower than normal execution.

+7
python debugging windows interpreter
source share
2 answers

I found some useful links that answer my question:

http://blog.devork.be/2009/07/how-to-bring-running-python-program.html

How to connect remote debugger to Python process?

http://wiki.python.org/moin/DebuggingWithGdb

Is there a way to connect a debugger to a multi-threaded Python process?

In general, it seems winpdb can do what I need (I'm on Windows), but I have not tested it.

+2
source share

I do not know if you have pdb debugger , but if you do not (and this may be useful to others here), you can try:

Here is a good tutorial:

+2
source share

All Articles