A project breakpoint in Eclipse is not going to be a problem.

Source: Internet
Author: User

Tag: ber use cell breakpoint invalid number for Val Invalid class

problem: After you set a breakpoint in a project, the breakpoint is invalid during debugging----that is, the program runs directly to the end.
There are several projects in the Eclipse workspace, but only the new renaming is invalid at a project breakpoint, and the breakpoint is valid within the other project

The measures taken:
1. Delete the project (all MAVEN works) and re-import it. Invalid.
2. Select Remove all breakpoints, and then reset the breakpoint, or not.

This problem to find the reason: is the project compile time did not set the line number, resulting in debugging can not be located, the key is: This line number is set for a project, not the environment variables of the entire platform, so there will be some engineering, some projects can not be the case . The pit daddy is, this question actually did not have any hint, also did not know when to tick off.
Don't say much nonsense, the solution is as follows:
Select Project, right click-->properties-->java compiler-->classfile Generation, tick add line number attributes to generated class files (used by the debugger).
And then we can.

A project breakpoint in Eclipse is not going to be a problem.

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.