Eclipse Debug Multithreaded Code Tags:
eclipse
debugging
Multithreading | Publish time: 2013-02-16 05:51 | CZJUTTSW share to: Source: http://blog.csdn.net
So far, no matter what programming language, programmers have used ide,ide to simplify the programmer's development process. The IDE is able to manage projects, generate code automatically, generate documents automatically, and debug applications.
By default, when debugging multithreaded threads, when a breakpoint is encountered (breakpoint), the current thread pauses while the other threads continue to run, which we do not want to see. For example, the following:
Except for the 21st thread, the rest is the running state.
Modify:
Window->preferences->java->debug:
In the red area, change the default Suspend Thread to Suspend VM
To debug multi-threaded threads:
You can see that all the threads are suspend.
Eclipse Debugging multithreaded Code