Idea Debug breakpoint is not valid __idea

Source: Internet
Author: User

1. Check if the project is started in debug mode, which is the button with the bug in the picture.

2. Check to see if breakpoints are disabled, disable the breakpoint and show the Gray

3. Add an output statement at the end of the breakpoint to determine whether you are entering a breakpoint (you need to have access requests for Web projects to reach some breakpoints)

4. Breakpoint hit wrong, idea seems to automatically identify invalid lines, such as String a=null; this kind of break point does not make sense of things.

5.Rebuild the entire project, then debug mode boot

6. For some first time valid, the second invalid situation, may refer to this way, http://bbs.csdn.net/topics/392003661

7. You can also write a test case to check if your idea's debug is working properly.

8. In the end, for some Web projects, you can try a different version of Tomcat. Or simply change the idea, suggest using the flagship (ultimate) ideas, and don't use the Community version (Community) (my test case can debug normally, and set breakpoints at the controller of the Web layer. Debugging directly into the breakpoint at the method, print out the log and get data back to the front, but it is at the breakpoint stop, and finally there is no way to change a flagship version of idea.

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.