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
> 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