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 / October 2006

Tip: Looking for answers? Try searching our database.

Eclipse Debugger Skipping Code

Thread view: 
JonathanCoultonProject@googlemail.com - 05 Oct 2006 12:10 GMT
Hi,

Me and my work collegue are having trouble with the Eclipse debugger in
v 3.1.0

I've had this problem before, but never found out why.

The problem is that I am stepping through code, and then with out any
reason, half way through a function the debugger will skip a large
amount of code, and the next time the debugger returns the line of
execution is in a completly different part of the code that occurs a
great deal of time later.
It has passed over numerous other break points.

Having investigated this issue on the web, most people seem to think
the class file is not compiled with the line numbers in, but I have
checked Windows=>Preferences=>Java=>Compiler and the 'Add line numbers
to generate class files' tick box is checked. Also, it occurs half way
through a function, which implies to me that the line numbers must be
there for me to have got that far.

We are using Tomcat 5, although this particualar peice of code is a
stand-alone program.
We are using ANT to compile the code, I suspect the issue may be
related to this, but I don't know how.

The build file compiles with the following:

<javac srcdir="${src.dir}" destdir="${classes.dir}" debug="on"
debuglevel="lines,vars,source" deprecation="off">

Any help would be greatly appreciated, no mater how unlikely, or
obvious (we may have done something silly in our set up).

Kerrin
David Kerber - 05 Oct 2006 13:01 GMT
> Hi,
>
[quoted text clipped - 29 lines]
> Any help would be greatly appreciated, no mater how unlikely, or
> obvious (we may have done something silly in our set up).

Have yoou tried doing a "clean" on that project and on eclipse itself
(starting with the "-clean" command-line option)?  I've found that the
that often fixes a lot of weird stuff that can build up over an extended
debugging session.

> Kerrin

Signature

Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).



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.