Wednesday, January 19, 2011

Unable to install breakpoint due to missing line number attributes

It would stop you add a breakpoint to your code. The detailed error description that comes as a message box says

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:

1. Verify the class file generation options in eclipse

Go to windows > preferences > Java > compiler screen.

Make sure that add line number attributes to generated files (used by debugger) check box is checked.

2. In the build.xml, set debug attribute to true in the javac task.


No comments:

REFACTORING

 What is Refactoring? A software is built initially to serve a purpose, or address a need. But there is always a need for enhancement, fixin...