Need to debug a JAR file "ProA", so import the source code in the project, but there is a strange error in Eclipse while trying to set a breakpoint. Detail as below:
Unable to install breakpoint due to missing line number attributes.
Modify compiler options to generate line number attributes.
I have try to several method to solve, but failed.
- Under Window > Preferences: Java > Compiler > Classfile Generation, all options have to be to True
- In
.settings
folder of your project, look for a file calledorg.eclipse.jdt.core.prefs
. Verify or setorg.eclipse.jdt.core.compiler.debug.lineNumber=generate
- Add the
debug=true
flag in thebuild.xml
, just like this:<javac srcdir="./src/java" destdir="./bin" debug="true">
Any help will be appreciated.