[IPython-user] Automatically starting IPython on exception

Yaroslav Bulatov yaroslavvb@gmail....
Thu Jun 25 15:49:10 CDT 2009


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'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20090625/0f474611/attachment.html 


More information about the IPython-user mailing list