How to identify threads in Eclipse debugging perspective?

I am developing a Java application that has some threads. I print in threadId console like 17, 18, 19 etc. But when I have the debugging perspective open, I have this "Debug" window (the top left window) that shows me the current threads, but they use [Thread-2], [thread-3]. Numbers do not necessarily match ThreadIds.

Is there any way to map the ThreadId that I get in my console to the stream shown in the Debug window?

+5
source share
3 answers

I do not know how to do that.

. Thread, . , Thread.setName(), . , .

+6
+3

, , . Thread.currentThread().getName(). .

+1
source

All Articles