stopping execution of Python program on exception in ipython -



stopping execution of Python program on exception in ipython -

i have long running python programme raises exception @ point. there way run ipython session , stop on exception examine live data?

you may want ipython -i yourscript.py, execute script in interpreter environment. won't allow inspect local environment exception happened, illustration local variables within function – you'll able inspect globals. want instead:

in [1]: %run test.py <exception occurs> in [2]: %debug test.py

if you're not familiar using pdb, check out some docs first.

edit thomas k

python ipython

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

r - url in CRAN extension manual -

asp.net - .NET Control.ID property inconsistency -