Yaroslav Bulatov | 25 Jun 22:49
Picon
Gravatar

Automatically starting IPython on exception

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

Gmane