Eclipse about Unable to install breakpoint in due to missing line number

Source: Internet
Author: User

Various ways to assemble the Internet:

Cannot debug in Eclipse, always error: "Unable to install breakpoint due to missing line number attributes. Modify compiler options to generate line number attributes "

Eclipse could not find the breakpoint because the bytecode was changed at compile time, causing eclipse to be unable to read the corresponding row.

1. The ant-compiled class eclipse is not recognized because Eclipse compiles class as well. How to make them unified, is in the build.xml in the javac tag add a sentence debug= "true", everything is OK.

such as: <javac debug= "true" >

Links: http://blog.csdn.net/liu251/article/details/3639160


2, Reload eclipse invalid, finally only to Window-preferences-java-compiler below
Put add line number attributes. The front tick is removed and then Apply-ok. Then Window-preferences-java-compiler put the hook on, and then Apply-ok, the problem was solved

Links: http://lwfshr.iteye.com/blog/144702

Solved using the second method.

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.