eclipse debug启动直接跳转到断点,错误信息为SilentExitException

项目中遇到,记录一下。

会自动跳到这里
public static void exitCurrentThread() {
		throw new SilentExitException();
	}
出现这种状况是因为eclipse默认开启挂起未捕获的异常,只要关闭此项就可以了。解决方法:选择Window->Preference->Java->Debug,将第一个选项:Suspend execution on uncaught exceptions 的勾去掉即可
发布了9 篇原创文章 · 获赞 3 · 访问量 622

猜你喜欢

转载自blog.csdn.net/weixin_44657749/article/details/103061806