退出ipython 0.10和0.11後纔可見我設置了異常時自動啓動pdb。ipython 0.11異常僅在pdb
在IPython的0.10正常工作:
In [1]: 1/0.
---------------------------------------------------------------------------
ZeroDivisionError Traceback (most recent call last)
/home/zonca/<ipython console> in <module>()
ZeroDivisionError: float division by zero
> <ipython console>(1)<module>()
ipdb>
相反,在IPython的0.11,除了不可見:
In [1]: 1/0.
> <ipython-input-1-7e0bf5b37da6>(1)<module>()
-1 1/0.
ipdb>
我看到它只是當我退出調試!
In [1]: 1/0.
> <ipython-input-1-7e0bf5b37da6>(1)<module>()
-1 1/0.
ipdb >
---------------------------------------------------------------------------
ZeroDivisionError Traceback (most recent call last)
/home/zonca/<ipython-input-1-7e0bf5b37da6> in <module>()
----> 1 1/0.
ZeroDivisionError: float division by zero
In [2]:
其他人有這個問題嗎?我在Ubuntu上使用python 2.7.2,使用pip安裝ipython。
這與我的問題是一樣的http://stackoverflow.com/questions/7988864/ipython-debugger-full-traceback-on-interactive-pdb ...很高興別人對它感到沮喪! – keflavich