Reputation: 1
i have many threads running in my application, but i want to debug just only one thread. i'm using eclipse, is that possible? i just saw that stuff in visual studio and in c#
Thank you for your help and pacience.
Upvotes: 0
Views: 1550
Reputation: 1309
If you open up the debug perspective, the window on the top left ("Debug") will list all the threads and let you pause them individually.
Upvotes: 1
Reputation: 11185
Identify the thread that you want to debug and name it using currentThread().setName("myThreadName")
. Then set a conditional breakpoint on currentThread().getName.equals("myThreadName")
.
Take care though as thread pooling can introduce some complications to your debugging process.
Upvotes: 2