首页 > 技术文章 > eclipse跳转到exitCurrentThread

zhangjianbing 2018-03-27 13:59 原文

1.在使用Eclipse时,用Debug模式运行springboot项目,结果总是在项目快启动成功的时候,跳转到exitCurrentException这个地方

2.方法:Eclipse->【Preferences】->【Java】->【Debug】:去掉【Suspend execution on uncaught exceptions】前面的勾

3.原理:因为Spring Boot项目使用了spring-boot-devtools工具且在Eclipse中Debug调试会自动跳转到这个方法。而Suspend execution on uncaught exceptions的中文意思是暂停执行在发生未捕获的异常时,我们将这个选项去掉打勾,便不会暂停,就类似于我们使用Run运行一样.

推荐阅读