Eclipse Debugging multithreaded Code

Source: Internet
Author: User
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.