Eclipse debugger always blocks on ThreadPoolExecutor without any obvious exception, why?

前端 未结 4 993
天命终不由人
天命终不由人 2020-12-04 05:39

I\'m working on my usual projects on Eclipse, it\'s a J2EE application, made with Spring, Hibernate and so on. I\'m using Tomcat 7 for this (no particular reason, I don\'t e

4条回答
  •  天涯浪人
    2020-12-04 06:04

    There's a more specific solution, which prevents Eclipse breaking on RuntimeExceptions thrown only from a given class.

    1. Add a new exception breakpoint from the Debugging perspective
    2. Go to its properties
    3. Go to Filtering
    4. In "Restrict to Selected Location(s)", click "Add Class"
    5. Add java.util.concurrent.ThreadPoolExecutor
    6. Untick the checkbox, meaning these will be ignored

提交回复
热议问题