Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / February 2005

Tip: Looking for answers? Try searching our database.

[Eclipse] Debug doesn't work properly.

Thread view: 
Sebastien Ayotte - 22 Feb 2005 21:59 GMT
I am new to eclipse. I made a java project that use tomcat. When I
want to use the debug's perspective my cursor don't follow the ligne I
supose to be debugging. I can debug but I have to check where the
thread is, go in the good class and go to the good line.

I try to create the same project again and I have the same problem.

However, I created an other project and the debug work properly. Maybe
it something with my tomcat?

Does anyone had this problem before?

Thanx :-)

--
Sebastien Ayotte
rivendall@hotmail.com
Roland - 22 Feb 2005 22:57 GMT
> I am new to eclipse. I made a java project that use tomcat. When I
> want to use the debug's perspective my cursor don't follow the ligne I
[quoted text clipped - 13 lines]
> Sebastien Ayotte
> rivendall@hotmail.com
Sounds like the line number information of the code is missing. If code
has been compiled without line number information, the debugger cannot
track your steps inside a method.

In particular code like Tomcat, and even Java's own runtime libraries
have been compiled without the linenumber info (I think for reasons of
jar size, but maybe also speed, though I doubt the last).

In your own code, you can ensure that Eclipse add this line number info
to your compiled code by selecting "Add line number attributes" in
Window -> Preferences -> Java -> Compiler -> Compliance and Class files.
Signature

Regards,

Roland de Ruiter
  ___      ___
 /__/ w_/ /__/
/  \ /_/ /  \

Sebastien Ayotte - 23 Feb 2005 13:05 GMT
> Sounds like the line number information of the code is missing. If code
> has been compiled without line number information, the debugger cannot
> track your steps inside a method.

The debugger can track my steps inside a method. If I check in the
threads list, I can see the line where I am suppose to be. If I use
step over or step into I can see the line change.

> In particular code like Tomcat, and even Java's own runtime libraries
> have been compiled without the linenumber info (I think for reasons of
[quoted text clipped - 3 lines]
> to your compiled code by selecting "Add line number attributes" in
> Window -> Preferences -> Java -> Compiler -> Compliance and Class files.

I checked and this option is already check :-(. I have no clues why my
cursor does not follow the debugger's information!

Thanx :-)

--
Sebastien Ayotte
rivendall@hotmail.com


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.