If I am debugging some multithreaded Java code in Eclipse - with a main class RunTest, and an interesting class QueueListener.
Assumptions:
- When RunTest is initialized - QueueListener runs in the background.
- When RunTest finalises - QueueListener is terminated
- There is a single method in RunTest - with a breakpoint in it
- There is a single method in QueueListener with a breakpoint in it
- QueueListener can run over and over again
- RunTest only runs once per execution (parent class)
When debugging in Eclipse - both breakpoints come up. But Eclipse gives priority to RunTest - and I have to manually flip it over to the QueueListener by selecting that thread in the debugger - and keep repeating this over and over.
Is there a way to tell Eclipse that I'm more interested in the QueueListener, and consider the testrunner to be a lower priority - when it chooses debug breakpoints to show?