facebook

Unable to install breakpoint due to missing line numbers

  1. MyEclipse Archived
  2.  > 
  3. General
Viewing 15 posts - 1 through 15 (of 23 total)
  • Author
    Posts
  • #234022 Reply

    OlegKotik
    Member

    This is actually Eclipse, not MyEclipse question.

    I am getting “Unable to install breakpoint due to missing line number attributes. Modify compiler options to generate line number attributes.”

    I checked both project level and workbench level Java Compiler properties (Complience and Classfile tab) – “Add line number attributes to generated class files” check box is selected .I also tried to “clean” the project as it was suggested in one of the postings – that didn’t help so far.

    Any recommendation would be appreciated.

    #234038 Reply

    Scott Anderson
    Participant

    Are you running any Ant processes to package or compile in any way?

    #236133 Reply

    evhiii
    Member

    I am building with Ant and I am having the same problem.

    #236161 Reply

    Riyad Kalla
    Member

    evhii,
    Make sure you are setting debug=true in your compilation task, otherwise you won’t be able to debug.

    #236591 Reply

    mangudiranga
    Member

    Hi,

    I found the answer for this question. I have set the WORKSPACE of my Eclipse to point to Weblogic – applications directory.

    Further I have copied the SRC folder of my application to

    D:\bea\user_projects\domains\xyzdomain\applications\XYZ directory.

    Where my XYZ directory is the root directory of my applications containing all HTML / JSP / JS files.

    Let me know if you need any further information.

    Regards
    Ranga

    #237618 Reply

    beena_ra
    Member

    This message has not been recovered.

    #237631 Reply

    mangudiranga
    Member

    This message has not been recovered.

    #239097 Reply

    cbare
    Member

    The solution given above involving moving your eclipse workspace to be in the app-server’s directory is not a very good idea.

    The issue, most likely, is that there are two compiles happening — eclipse’s and ant’s. The settings for the eclipse compiler don’t affect the ant build even if you launch the ant build from within eclipse. Ant controls it’s own compiler settings. You can tell ant to generate debugging info like this:

    
    <javac ... debug="true" .../>
    

    -cbare

    #240119 Reply

    Hi !
    please help
    i am using antlr grammer for my language which has lokk ahead of 2 , i want to get offset of terminals but i am not able to get , [/b]please reply soon

    #244206 Reply

    sjselvan
    Member

    Thanks cbare,
    u r solution really works!!!!

    thanks again.

    Jay

    #250466 Reply

    jkafeero
    Participant

    Hibernate Version 3.1.3
    MyEclipseIDE 4.1.1
    Eclipse SDK 3.1.1

    I get “modify compiler options to generate line number attributes” as part of the dialog error box when I debug JUnit tests which involve Hibernate.

    Is this a MyEclipse bug with CGLIB or not?

    Full message is

    
    Full message is 
     Unable to install breakpoint in
      com.mydomain.Myclass.ClassName$$FastClassByCGLIB$$53412954 due to 
      missing line number attributes. Modify Compiler options to generate the line
      number attributes
    
      Reason:
        Absent Line Number information
    

    Thanks.

    Josh.

    #250467 Reply

    Riyad Kalla
    Member

    Just be sure your have that setting turned on for the project. Something to check (if you set it at the workspace level) is that you don’t accidentally have custom compiler settings for your individual project that are overriding the workspace settings and turing this off.

    Then be sure to Project > Clean your project.

    #252540 Reply

    dlatch
    Member

    PLEASE HELP 🙂

    I can’t set a breakpoint in a simple java bean method. I get the notification “Unable to install breakpoint in…” when starting my local Tomcat server. I am not using Ant.

    I have MyEclipse 4.1.1 (Eclipse 3.1.2).
    I am deploying to a local Tomcat server (5.5.x)

    I’ve checked and double checked to make sure that my compiler settings have “Add line numbers to generated class files (used by the debugger)”. Also, my project has not overriden this setting – “Enable project specific settings” remains unchecked as is the default.

    In the past I have been able to fix this by:
    – remove all breakpoints
    – close all source windows
    – Project/Clean Project
    – undeploy, then deploy fresh to local

    This time, none of the above will fix the issue. Last resort would be to rebuild my workspace and I would like to avoid that since I have several projects that I’d have to re-import, etc.

    Any help would be greatly appreciated!!!

    Thanks,
    Dan

    #252544 Reply

    Riyad Kalla
    Member

    Dan,
    Navigate to your Tomcat 5 connector settings and go down into the Launch preferences, is it set to start using Debug mode? Also are you starting Tomcat from MyEclipse or are you starting it externally? When you installed it, did you tell the installer to make it a system service by chance?

    #252563 Reply

    dlatch
    Member

    The Tomcat Lauch mode is debug. I’m starting Tomcat from within MyEclipse. Tomcat is installed as a service, manual startup type.

    Also, I’ve been running with this workspace config for weeks and setting breakpoints was never a problem. When I redeploy, all the class files are updated so somehow they are not getting compiled with the line numbers. I’ve even tried unchecking this in preferences, clicking Apply and then checking it again trying to get it to take.

Viewing 15 posts - 1 through 15 (of 23 total)
Reply To: Unable to install breakpoint due to missing line numbers

You must be logged in to post in the forum log in