管理Python异常断点 [英] Manage Python exception breakpoints
问题描述
我试图在PyDev中使用管理Python异常断点功能。
I'm trying to use the 'Manage Python Exception Breakpoints' feature in PyDev.
在选择运行 - >管理Python异常断点后调试以下脚本并选择所有例外。
Debugging the following script after selecting run -> 'Manage Python Exception Breakpoints' and selecting all exceptions.
print 1
print 2
assert(False)
print 3
没有任何反应,我只是正常收到异常。
nothing happens and I just get an exception as normal.
编辑: -
似乎问题是matplotlib。以下脚本展示了我以前看到的问题。 pydev在pylab中处于某处,我无法走出我的脚本。
It seems the problem is with matplotlib. the following script exhibits the problem I saw previously. pydev breaks somewehere in pylab and I can't step out to my script.
import pylab as pyp
print 1
print 2
assert(False)
print 3
推荐答案
我刚才在这里检查,似乎正常工作我正在运行在调试模式? (有关如何在调试模式下运行的步骤如下: http://pydev.org/manual_101_run.html)
I just checked it here and it seems to work properly for me... Are you running in debug mode? ( there are steps on how to run in debug mode at: http://pydev.org/manual_101_run.html )
这篇关于管理Python异常断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!