Debugging multiple threads in eclipse

后端 未结 4 2120
無奈伤痛
無奈伤痛 2020-12-02 12:53

In a method I am debugging, I am spawning a new thread. I need to debug the execution of this new thread rather than the parent thread. How can I do this in eclipse?

4条回答
  •  日久生厌
    2020-12-02 13:27

    Put a breakpoint on "run" method of the new thread. That would halt execution once the thread starts.

提交回复
热议问题