在调试中运行时如何在每个捕获的异常中停止eclipse中断 [英] how to stop eclipse breaking at every caught exception when running in debug

查看:291
本文介绍了在调试中运行时如何在每个捕获的异常中停止eclipse中断的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我开始调试Java项目时,eclipse会不断破坏第三方库中的随机异常,这很烦人。
知道如何停止此操作吗?

when I start debugging a java project, eclipse keep on breaking at random exceptions in 3rd party libraries, and it's so annoying. any idea how to stop this?

我尝试单击Breakpoints视图上的(!)图标,我可以看到暂停在捕获的异常上和在未捕获的异常上挂起复选框未选中。.仍然会在异常上使日食中断。

I tried clicking on the (!) icon on the Breakpoints view, I can see that both "Suspend on caught exceptions" and "Suspend on uncaught exceptions" checkboxes are not checked.. still eclipse breaks on the exception.

尽管我不确定我是否正确使用了该窗口,我是要一一选择例外吗?还是有办法指定所有例外?

Although I'm not sure I'm using this window correctly, am I meant to select the exceptions one by one? or is there a way to specify all exceptions?

亲切问候

推荐答案

使用!选择的例外断点视图中的图标是您想要要停止的例外。如果在其中放置 NullPointerException,并告诉Eclipse在捕获和未捕获上停止,则执行将在所有最后抛出的NullPointerException上停止。您确定尚未针对执行停止的每个随机异常设置断点吗?

The exceptions you select with the "!" icon in the Breakpoint view are the exceptions you want to stop on. If you put "NullPointerException" in there and tell Eclipse to stop on "Caught and uncaught", your execution will stop on every last NullPointerException that gets thrown. Are you sure you haven't set a breakpoint on each of the "random exceptions" your execution stops on?

这篇关于在调试中运行时如何在每个捕获的异常中停止eclipse中断的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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