首页  :: 新随笔  :: 管理

eclipse老是报ThreadPoolExecutor$Worker.run()

Posted on 2012-03-15 18:25  季枫  阅读(5649)  评论(0编辑  收藏  举报

资料地址:http://stackoverflow.com/questions/6290470/eclipse-debugger-always-blocks-on-threadpoolexecutor-without-any-obvious-excepti

eclpise debug 模式的线程经常会停在 ThreadPoolExecutor$Worker.run() 这是因未捕获异常导致的.

如果觉得烦了:

Configuring the behavior of Eclipse is straightforward - in the Preferences Dialog, the Debug pane under Java in the tree hierarchy, has the option titled "Suspend execution on uncaught exceptions", which can be unchecked.

打开参数面板,搜索 debug 找到 "Suspend execution on uncaught exceptions" 把前面的勾去掉.

智读 | 成都会领科技有限公司官网 | 智读App下载 | 每天听本书的博客 | |