Re: Eclipse Debugger Skipping Code



In article <1160046633.149779.98450@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
JonathanCoultonProject@xxxxxxxxxxxxxx says...
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).


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



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



Relevant Pages

  • Re: Cant write to a file
    ... > File aosFileDir = new File; ... Have you tried stepping through the programmer with a debugger? ... the program with the Eclipse debugger to see what the problem might be. ...
    (comp.lang.java.programmer)
  • 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)