Eclipse使用Debug模式調試Spring Boot項目時跳轉到exitCurrentThread的問題


Spring Boot項目使用了spring-boot-devtools工具且在Eclipse中Debug調試會自動跳轉到這個方法:

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

解決方法:

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

 

參考:

https://stackoverflow.com/questions/32770884/breakpoint-at-throw-new-silentexitexception-in-eclipse-spring-boot


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM