Eclipse Debugger Skipping Code



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

.



Relevant Pages

  • Re: Eclipse Debugger Skipping Code
    ... Me and my work collegue are having trouble with the Eclipse debugger in ... half way through a function the debugger will skip a large ... the class file is not compiled with the line numbers in, ... We are using ANT to compile the code, I suspect the issue may be ...
    (comp.lang.java.softwaretools)
  • Re: AWS issue
    ... Debugger for ada is not installed, so I can run the debugger, but the only answer I get is exit code 01. ... So I compile a single file with this function and link with all that stuff. ... At a glance it seems like you are missing -gnat05 in the compile command so you get and Ada95 compiler instead of Ada compiler. ... I've got two problems on AWS, hope there is some aws 2.3 users here. ...
    (comp.lang.ada)
  • Re: Compilator Fortran
    ... To facilitate compilation for the Windowed Debugger ... REM Invoke the debugger if compile and link went ok. ... This will compile, link, and invoke the windowed debugger. ...
    (comp.lang.fortran)
  • Re: compiler errors
    ... compile a program that I downloaded from the net and keep getting a ... What is a DBG File and how do I set up the compiler to so I won't get ... debugging information necessary to do source code step-by-step ... The debugger is just warning you that it can't find the ...
    (microsoft.public.dotnet.languages.vc)
  • Re: unexplainable behaviour - f90 - looking for some tools to help diagnose
    ... using a debugger can help. ... But you should compile again your code with -g option and depending on the previous option used your code can run because of different layout of the datas in memory. ... If it fails (memory fault, segmentation fault) use the where command of the debugger to see where you are in the code.... ... I'm using CVS to store successive versions of my codes, but even if I can see exactly what has changed I do not undestand why I have a memory fault! ...
    (comp.lang.fortran)