I'm just curious if there exists a command for the ipdb-debugger to jump back to the source of a raised exception.
Consider the following little programm.
import sys
import random
def somefun():
someval = random.random()
raise Exception()
def run():
try:
somefun()
except Exception:
sys.exit(10)
When running the run
function from the commandline (using ipython-console) it exits with 10 as it should.
Is there a way to start the post mortem debugger (pdb.pm()
) and get the value of someval
by jumping back?