My Java application has a problem I'm struggling to solve. I need to breakpoint runWorker() method of ThreadPoolExecutor , but because this is a standard Java class I dont think I can add breakpoints to stop it when I run in my IntelliJ Java tool.
I could view the source in IntelliJ and set a breakpoint but unlike breakpoints in my own code it had no effect.
What is the right approach here ?
asked Jul 10, 2019 at 12:13
Paul Taylor
13.4k55 gold badges220 silver badges408 bronze badges
1 Answer 1
The problem was the attached src was for Java 1.8.1 but I was running as Java 10, when I changed to run as java 1.8.1 it worked.
answered Jul 11, 2019 at 7:07
Paul Taylor
13.4k55 gold badges220 silver badges408 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-java
ThreadPoolExecutor#runWorker(Worker)method worked for me using IntelliJ; execution was suspended and was able to step though the code.