今天在運行Javaweb項目時,程序運行運行着就自動調試進入ThreadpoolExecutor,看着非常影響心情。最后在網上搜解決方法最后找到原因,解決方法如下。
Window——》Preferences——》Java——》Debug——》Suspend Execution,將suspend execution on uncaught exceptions前的勾去掉——》Apply——》OK
suspend execution on uncaught exceptions 翻譯為漢語是:暫停執行未捕獲的異常。
問題解決。這個問題的原因是 一直在捕獲 未捕獲的異常。