`

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.

 

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

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics