Is there a way to launch an IPython shell or prompt when my program runs a line that raises an exception?
I\'m mostly interested in the context, variables, in the sc
You can try this:
from ipdb import launch_ipdb_on_exception def main(): with launch_ipdb_on_exception(): # The rest of the code goes here. [...]