错误时停止PyCharm [英] Stop PyCharm If Error

查看:119
本文介绍了错误时停止PyCharm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在PyCharm调试模式下,有没有办法让它在遇到错误但没有退出并突出显示有问题的行后立即停止?我想到的类似功能是Matlab的如果出错则为dbstop".

In PyCharm debugging mode, is there way to let it stop right after it hits an error but not exit and highlight the offending line? The analogous feature I have in mind is "dbstop if error" of Matlab.

推荐答案

是的.在运行"下,如果您单击查看断点"(在Windows上为Ctrl + Shift + F8),则存在一个复选框,您可以在其中为任何异常创建一个异常断点.

Yes, there is. Under Run, if you hit View Breakpoints (Ctrl + Shift + F8 on Windows) there's a checkbox where you can create an exception breakpoint for any exception.

这篇关于错误时停止PyCharm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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