Eclipse使用Debug模式调试Spring Boot项目时跳转到exitCurrentThread的问题

Spring Boot项目使用了spring-boot-devtools工具且在Eclipse中Debug调试会自动跳转到这个方法:

public static void exitCurrentThread() {
    throw new SilentEitException();
}

Eclipse使用Debug模式调试Spring Boot项目时跳转到exitCurrentThread的问题
原因:

出现这种状况是因为Eclipse默认开启挂起未捕获的异常(Suspend execution on uncaught exceptions),只要关闭此项就可以了

解决方法:

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