Unable to install breakpoint in due to missing line number !

不能调试JavaBean!

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

弄了好半天 也没弄出来,最后google了一下,总算解决了。原因是:ANT编译的class Eclipse不认,因为eclipse也会编译class。怎么让它们统一呢,就是在build.xml里的javac标签里加上一句 debug="true",一切就OK了。

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

你可能感兴趣的:(eclipse,ant,Google,Class,compiler,attributes)