Unable to install breakpoint due to missing line number attributes. Modify compiler options to generate line number attributes.I verified in my java compiler preferences that eclipse was configured to add line number attributes to my generated class files so I was stumped as to why Eclipse would not recognize it. It then occurred to me that Eclipse doesn't compile the code, Maven does. I then found the place in my pom.xml file where I needed to set the debug attribute of the compiler to true:
<build>
<finalname>${project.artifactId}</finalname>
<plugins>
<plugin>
<artifactid>maven-compiler-plugin</artifactid>
<version>2.3.1</version>
<configuration>
<source></source>1.6
<target>1.6</target>
<debug>true</debug>
</configuration>
</plugin> </plugins>
After saving this change and updating my project configuration I redeployed my project and was debugging successfully.
对我的项目不起作用,要重新找原因
遇到在Eclipse中使用jboss web应用进行调试时,出现'无法安装断点,因为缺少行号属性'的错误。通过修改maven-compiler-plugin配置,将debug属性设置为true,解决了此问题。验证了在项目部署并成功调试后,确认Eclipse不再遇到该错误。
419

被折叠的 条评论
为什么被折叠?



