Unable to install break points in eclipse.
This is a very common error with eclipse. When you try to set a break point, eclipse says “unable to install breakpoint due to missing line number attributes”.
Description of the error
Can not set the break point. A dialog box appears with the error message like
Unable to install breakpoint in xyz class due to missing line number attributes. modify compiler options to generate line number attributes.
Reason: Absent line number attributes in generated class file.
Follow this steps if you are compiling classes using eclipse
1. If you are compiling using the eclipse. Verify the class file generation options.
Go to windows > preferences > Java > compiler screen.
Make sure that add line number attributes to generated files (used by debugger) check box is checked.
If you don’t know, what other options are. Check all other three check boxes also.
Follow this steps if you are compiling using ANT
Look into the build file and make sure that debug attribute is set to true in javac task
<javac debug=”true” srcdir=”" destdir=”">
Set debug=”true” and build again.
<javac srcdir=”" destdir=”" verbose=”false” debug=”true” debuglevel=”lines,vars,source”>
That’s it !! Try setting the break point again.