Unable to install breakpoint due to missing line numbers

遇到在Eclipse中使用jboss web应用进行调试时,出现'无法安装断点,因为缺少行号属性'的错误。通过修改maven-compiler-plugin配置,将debug属性设置为true,解决了此问题。验证了在项目部署并成功调试后,确认Eclipse不再遇到该错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Unable to install breakpoint due to missing line numbers

I ran into a problem where I couldn't debug my jboss webapp in eclipse.  I received the error:
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.

 

 对我的项目不起作用,要重新找原因

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值