Error Solved

Finally I solved the error

Archive for August 2008

Unable to install breakpoint due to missing line number attributes

with 11 comments

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.

Solution
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.

Eclipse - preferences

Eclipse - preferences

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.

Written by daringtakers

August 27, 2008 at 10:22 am

Posted in eclipse

Tagged with ,