pycharm 中未处理的异常中断
有谁知道如何打破 pycharm 中未处理的异常?根据此链接,它应该是可能的,尽管它对我来说并没有破坏(构建105.58)。我必须打开一些开关才能启用此功能吗?
编辑:我按照你的建议做了,但是调试器不会因未处理的异常而中断。请查看下面的屏幕截图,如果我需要做其他事情,请告诉我。
看来这与中断 pydev/gae 中未处理的异常。 Pycharm 使用 pydevd 作为调试器。
C:\Python25\python.exe "C:\Program Files\JetBrains\PyCharm 1.2.1\helpers\pydev\pydevd.py" --client 127.0.0.1 --port 49371 --file C:/Users/morpheus/PycharmProjects/untitled1/main.py
pydev debugger: warning: psyco not available for speedups (the debugger will still work correctly, but a bit slower)
pydev debugger: starting
Connected to pydev debugger (build 105.58)
我可以让它在非 Gae 项目上崩溃,但它不会在 Gae 项目上崩溃。如何解决这个问题?
Does anyone know how to break on unhandled exceptions in pycharm? per this link it should be possible, although its not breaking for me (build 105.58). Is there some switch I have to turn on to enable this?
EDIT: I did what you suggested, but the debugger is not breaking on unhandled exceptions. Please see the screenshot below, and let me know if I need to do something else.
It seems this is the same issue as breaking on unhandled exceptions in pydev/gae. Pycharm uses pydevd for the debugger.
C:\Python25\python.exe "C:\Program Files\JetBrains\PyCharm 1.2.1\helpers\pydev\pydevd.py" --client 127.0.0.1 --port 49371 --file C:/Users/morpheus/PycharmProjects/untitled1/main.py
pydev debugger: warning: psyco not available for speedups (the debugger will still work correctly, but a bit slower)
pydev debugger: starting
Connected to pydev debugger (build 105.58)
I can get it to break on a non-gae project, but it won't break on a gae project. How can this be fixed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
请查看文档:
Please check the documentation:
现在在 Pycharm 5(至少)上,您可以通过检查“所有异常”和“终止时”使其在未处理的异常上中断。
Now on Pycharm 5(at least) you can make it break on unhandled exceptions by checking "all exception" and "on terminate".