- This topic has 22 replies, 14 voices, and was last updated 17 years, 7 months ago by Riyad Kalla.
-
AuthorPosts
-
OlegKotikMemberThis 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.
Scott AndersonParticipantAre you running any Ant processes to package or compile in any way?
evhiiiMemberI am building with Ant and I am having the same problem.
Riyad KallaMemberevhii,
Make sure you are setting debug=true in your compilation task, otherwise you won’t be able to debug.
mangudirangaMemberHi,
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
beena_raMemberThis message has not been recovered.
mangudirangaMemberThis message has not been recovered.
cbareMemberThe 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
indreshMishraMemberHi !
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
sjselvanMemberThanks cbare,
u r solution really works!!!!thanks again.
Jay
jkafeeroParticipantHibernate Version 3.1.3
MyEclipseIDE 4.1.1
Eclipse SDK 3.1.1I 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.
Riyad KallaMemberJust 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.
dlatchMemberPLEASE 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 localThis 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
Riyad KallaMemberDan,
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?
dlatchMemberThe 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.
-
AuthorPosts