I donโt think you can resume sending the code (i.e. the exception was really raised by calling the debugger). What you can do is put breakpoints in your code where you see errors, and this allows you to change the values โโand keep the program running, avoiding the error.
Given the script myscript.py
:
# myscript.py from IPython.core.debugger import Tracer
which constantly increments the counter, raising an error if it is ever divisible by 4. But we edited it to drop it into the debugger, provided the error, so that we could save ourselves.
Run this script with IPython:
In [5]: run myscript 1 2 3 > /Users/minrk/dev/ip/mine/myscript.py(14)test() 13 debug_here() ---> 14 if counter % 4 == 0: 15 raise ValueError("forbidden counter: %s" % counter)
source share