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

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

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