Unable to install breakpoint due to missing line numbers

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.

 

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值