现在的位置: 首页 > 综合 > 正文

eclipse关于Unable to install breakpoint in due to missing line number

2014年02月06日 ⁄ 综合 ⁄ 共 562字 ⁄ 字号 评论关闭

集合网上的各种方法:

在eclipse中不能调试,总是报错:“Unable to install breakpoint due to missing line number attributes. Modify compiler options to generate line number attributes”

Eclipse 无法找到 该 断点,原因是编译时,字节码改变了,导致eclipse无法读取对应的行了

1、ANT编译的class Eclipse不认,因为eclipse也会编译class。怎么让它们统一呢,就是在build.xml里的javac标签里加上一句debug="true",一切就OK了。

如:<javac ... debug="true">

 

链接:http://blog.csdn.net/liu251/article/details/3639160

2、重装eclipse无效,最后只有到window-preferences-java-compiler下面
把Add line number attributes..前的勾去掉,然后apply-OK。再window-preferences-java-compiler把勾打上,再apply-OK,问题才解决了

链接:http://lwfshr.iteye.com/blog/144702

使用第二种方法解决了。

抱歉!评论已关闭.