25 Jun 22:49
Automatically starting IPython on exception
Yaroslav Bulatov <yaroslavvb <at> gmail.com>
2009-06-25 20:49:10 GMT
2009-06-25 20:49:10 GMT
Is there a way to setup IPython to start on exception automatically? I followed recipe at http://code.activestate.com/recipes/65287/, but replaced pdb.pm call with ipshell(), with no luck.
In particular, the line of "IPython.Shell import IPShellEmbed" causes an exception at the time of importing of sitecustomize.py, the stack trace has following entry in it
from IPython import Debugger, PyColorize
File "/var/lib/python-support/python2.5/IPython/Debugger.py", line 48, in <module>
if '-pydb' in sys.argv:
AttributeError: 'module' object has no attribute 'argv'
_______________________________________________ IPython-user mailing list IPython-user <at> scipy.org http://mail.scipy.org/mailman/listinfo/ipython-user
RSS Feed