I had the same error message in Eclipse 3.4.1, SUN JVM1.6.0_07 connected to Tomcat 6.0 (running in debug-mode on a different machine, Sun JVM1.6.0_16, the debug connection did work correctly).

Window --> Preferences --> Java --> Compiler --> Classfile Generation: "add line number attributes to generated class file" was checked. I did a clean, recompile. I did uncheck it, recompile, check it, recompile. I made sure the project did use the global settings. Still the same message.

I switched to ant build, using

<javac srcdir="./src/java" destdir="./bin" debug="true">

Still, same message.

I didn't find out what caused this message and why it wouldn't go away. Though it seemed to have something to do with the running Tomcat debug session: when disconnected, recompiling solves the issue. But on connecting the debugger to Tomcat or on setting new breakpoints during a connected debug session, it appeared again.

However, it turned out the message was wrong: I was indeed able to debug and set breakpoints, both before and during debugging (javap -l did show line numbers, too). So just ignore it :)

Answer from Zefiro on Stack Overflow
🌐
Eclipse
bugs.eclipse.org › bugs › show_bug.cgi
565406 – Unable to install breakpoint warning - bug
Planet Eclipse · Newsletter · Videos · Participate · Report a Bug · Forums · Mailing Lists · Wiki · IRC · How to Contribute · Working Groups · Automotive · Internet of Things · LocationTech · Long-Term Support · PolarSys · Science · OpenMDM · Toggle navigation · Bugzilla – Bug 565406 Unable to install breakpoint warning Last modified: 2024-07-01 16:23:25 EDT ·
Discussions

Unable to install breakpoint due to missing line numbers - Genuitec
This is actually Eclipse, not MyEclipse question. I am getting “Unable to install breakpoint due to missing line number attributes. More on genuitec.com
🌐 genuitec.com
August 1, 2005
java - Eclipse Unable to install breakpoint - Stack Overflow
So a couple weeks ago my Eclipse IDE no longer allowed me to remotely debug my application saying that it was unable to install breakpoints because line numbers were not being displayed...The prob... More on stackoverflow.com
🌐 stackoverflow.com
Unable to install breakpoint in Eclipse: Absent Line Number Information
Find answers to Unable to install breakpoint in Eclipse: Absent Line Number Information from the expert community at Experts Exchange More on experts-exchange.com
🌐 experts-exchange.com
October 18, 2015
why can't I set up a breakpoint in eclipse? - Stack Overflow
In my case, I opened up the Breakpoints ... off, then on. This allowed me to set breakpoints again. This was after a restart of eclipse failed to help. ... I was having a simular issue, for me the standard code-editor changed after installing a new plugin from Marketplace... More on stackoverflow.com
🌐 stackoverflow.com
🌐
DC Roy's Blog
deepakcroy.wordpress.com › 2020 › 01 › 29 › eclipse-unable-to-install-breakpoint-due-to-missing-line-number-attributes
Eclipse – Unable to install breakpoint due to missing line number attributes
January 29, 2020 - In eclipse menu, go to Window->Preferences->Java->Compiler Unmark checkbox "Add line number attributes..." Click Apply -> Yes Mark checkbox "Add line number attribute..." Apply again.
🌐
Eclipse
bugs.eclipse.org › bugs › show_bug.cgi
105226 – Unable to install breakpoint in Reason: Absent Line Number Information
Bugzilla – Bug 105226 Unable to install breakpoint in Reason: Absent Line Number Information Last modified: 2008-03-05 04:53:43 EST ... This site is maintained for archival purposes only. Eclipse projects have transitioned to GitHub and Eclipse GitLab.
🌐
Eclipse
bugs.eclipse.org › bugs › show_bug.cgi
99556 – Unable to install breakpoint in - Urgent - bug
Bugzilla – Bug 99556 Unable to install breakpoint in - Urgent Last modified: 2005-09-29 07:59:10 EDT ... This site is maintained for archival purposes only. Eclipse projects have transitioned to GitHub and Eclipse GitLab.
🌐
Coderanch
coderanch.com › t › 106571 › ide › JavaRebel-Eclipse-Debugging-Missing-line
JavaRebel - Eclipse & Debugging - Missing line numbers (IDEs and Version Control forum at Coderanch)
Start from the Eclipse and I get the JavaRebel message in the console. I then add a breakpoint in MyClass.java. When the code executes I get an error pop-up from Eclipse when the breakpoint is hit saying: "Unable to install breakpoint in path.to.class.MyClass$$A$736f0a9e due to missing line number attributes.
🌐
Eclipse
genuitec.com › home › topics › archived forums › myeclipse archived › general › unable to install breakpoint due to missing line numbers
Unable to install breakpoint due to missing line numbers - Genuitec
August 1, 2005 - Full message is Unable to install breakpoint in com.mydomain.Myclass.ClassName$$FastClassByCGLIB$$53412954 due to missing line number attributes.
Find elsewhere
🌐
Experts Exchange
experts-exchange.com › questions › 28747179 › Unable-to-install-breakpoint-in-Eclipse-Absent-Line-Number-Information.html
Solved: Unable to install breakpoint in Eclipse: Absent Line Number Information | Experts Exchange
October 18, 2015 - I have a Java 1.6.0 web application that I am developing using a Kepler Version 2 Eclipse development environment. I am using an Oracle Weblogic Server Administration Console 12c. I'm running the app locally - and trying to debug it. Instead of stopping at any of the breakpoints I've set - I get the following error: When I installed the application to Weblogic, I ran the Weblogic console and then installed the application by adding the ear file.
🌐
The Eclipse Foundation
eclipse.org › forums › index.php › t › 201329
Eclipse Community Forums: C / C++ IDE (CDT) » "Breakpoint attribute problem: installation failed" | The Eclipse Foundation
December 3, 2010 - The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 350 open source projects, including runtimes, tools and frameworks.
🌐
The Eclipse Foundation
eclipse.org › forums › index.php › t › 58249
Eclipse Community Forums: Newcomers » Unable to install breakpoint | The Eclipse Foundation
The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 350 open source projects, including runtimes, tools and frameworks.
🌐
Error Solved
solveme.wordpress.com › 2008 › 08 › 27 › unable-to-install-breakpoint-due-to-missing-line-number-attributes
Unable to install breakpoint due to missing line number attributes
February 20, 2009 - 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.
🌐
Eclipse
bugs.eclipse.org › bugs › show_bug.cgi
428862 – [1.8] Unable to install breakpoint - bug
Planet Eclipse · Newsletter · Videos · Participate · Report a Bug · Forums · Mailing Lists · Wiki · IRC · How to Contribute · Working Groups · Automotive · Internet of Things · LocationTech · Long-Term Support · PolarSys · Science · OpenMDM · Toggle navigation · Bugzilla – Bug 428862 [1.8] Unable to install breakpoint Last modified: 2014-03-20 02:38:25 EDT ·
🌐
Eclipse
bugs.eclipse.org › bugs › show_bug.cgi
135027 – Unable to install breakpoint in jre classes - Bugs
Bugzilla – Bug 135027 Unable to install breakpoint in jre classes Last modified: 2006-04-05 14:34:49 EDT ... This site is maintained for archival purposes only. Eclipse projects have transitioned to GitHub and Eclipse GitLab.
🌐
Stack Overflow
stackoverflow.com › questions › 72487406 › eclipse-debug-unable-to-install-breakpoint-in
java - Eclipse debug “unable to install breakpoint in“ - Stack Overflow
June 3, 2022 - Using breakpoints requires that the code has been compiled with debug information and that the source has been correctly attached. Please provide a minimal reproducible example. ... I am sure it must be an eclipse / tomcat / maven issue.
Top answer
1 of 3
2

I have had the same problem, but reading your post helped me resolve mine. I changed org.eclipse.jdt.core.prefs as follow:

BEFORE:

eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7

AFTER:

eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=1.7
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.source=1.7

Another way to modify these options within the Project> Properties> Java Compiler. So, there is no need to modify manually the org.eclipse.jdt.core.prefs file. There you need to make sure that the Classfile Generation options are checked.

2 of 3
0

In the JAR the line number attributes are missing in the compiled bytecode. With the added source code Eclipse knows the line numbers, but not the Java VM that executes the bytecode and does not see the source code.

It would be useless if Eclipse told the Java VM to stop at a specific line, because the Java VM does not know which command is in which line and so when to stop.

The only solution is to recreate the JAR or at least the bytecode (.class files) with line information of the class(es) where you want to set a breakpoint.