Q:

Unable to install breakpoint due to missing line number attribute

When i put breakpoint it show given error:
Unable to install breakpoint due to missing line number attribute

I tried most of the option found on stackoverflow still same issue.

Now same error shows still debugging works fine. Why this error come?

A:

If the source code of the class is in a Java project and compiled by Eclipse, do the following:

Right-click on the project that contains the code and choose Properties...
In Java Compiler check Add line number attributes to generated class files (used by the debugger)

