在pydev中突破异常 [英] Break on exception in pydev

查看:172
本文介绍了在pydev中突破异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以让pydev调试器中断异常?

Is it possible to get the pydev debugger to break on exception?

推荐答案

/ strong>异常?

On any exception?

如果我的内存正常使用,在PyDev(在Eclipse中)这是可能的。

If my memory serves me right, in PyDev (in Eclipse) this is possible.



编辑:再次查看,检查 pdb文档,找不到设置异常断点的方法。


went through it again, checked pdb documentation, can't find a way to set an exception breakpoint.

如果我可能建议一个非常粗糙的解决方法,但是如果你必须,你可以从 try-except 块中的程序中调用你的程序,在那里设置一个断点,一旦在 code>块只是上升堆栈并调试你的错误。

If I may suggest a really crude workaround, but if you must, you can call your program from within a try-except block, set a breakpoint there, and once it breaks in the except block just go up the stack and debug your error.

另一个编辑此功能已添加到PyDev

这篇关于在pydev中突破异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆