Spring Boot项目使用了spring-boot-devtools工具且在Eclipse中Debug调试会自动跳转到这个方法:
public static void exitCurrentThread() {
throw new SilentEitException();
}
解决方法:
Eclipse->【Window】->【Preferences】->【Java】->【Debug】:去掉【Suspend execution on uncaught exceptions】前面的勾。
![](https://img.laitimes.com/img/_0nNw4CM6IyYiwiM6ICdiwiIn5GcugDMzATNwYTO40iN1kTOyMzM2EDNyEDM5EDMy0iM5YTMvwVMwkTMwIzLcJTO2EzLcd2bsJ2Lc12bj5ycn9Gbi52YugTMwIzZtl2Lc9CX6MHc0RHaiojIsJye.png)