Manage Python exception breakpoints

萝らか妹 提交于 2019-12-24 11:29:52

问题


I'm trying to use the 'Manage Python Exception Breakpoints' feature in PyDev.

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.

EDIT:-

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

回答1:


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 )



来源:https://stackoverflow.com/questions/8940342/manage-python-exception-breakpoints

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!