Re: Need Help! Problems with running eclipse debugger with tomcat



Well, I have found out why, actually quite a while ago. Sorry for the
late update (if there's anybody out there who would care, that is), as
much as I have been getting help from the News Groups for so many years
now, I think I at least owe it to post my findings in those rare
instances where I was able to find solutions for my problems...

Anyways...

Even though I have set up the Eclipse compilation option in a way that
it would include all the necessary debugging information like I have
mentioned, since I was using Ant to build my deploy packages (not the
Eclipse's compiler), the byte codes in my jar files did not contain any
debugging information - as you all would know it, Ant has its own
compilation/build configuration (in build.xml).

So, all I had to do was to modify the build.xml file, so that Ant would
be told to include all the debugging information (line numbers and
such) when compiling the code. The compile target section of the
build.xml file should looks something like this:

.....
<target name="compile" description="compiles...>
<mkdir dir="${classes.dir}"/>
<javac srcdir="${gensrc.java.dir}"
destdir="${classes.dir}"
failonerror="${compile.fail}"
debug="on">
<classpath>
<path refid="class.path"/>
</classpath>
</javac>
</target>
.....

Basically, all I had to was to add; debug="on" Of course, that's
because I already had done all the other stuff (i.e. configuring the
web server to open a debugging port and such), like I have described in
my original posting.

If this posting indeed ends up helping some lost soul out there who had
the same problem I had... that would make me very happy...

Have a nice day.

_Jung

.



Relevant Pages

  • Re: How to set for debug/release
    ... That page explains that the *Build* configuration option which controls ... (Debug compilation, Release compilation, and so on), conversion follows ... If the project contains only Debug and Release configurations, ... all you need to do to generate assemblies with debugging information is ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: cant find a class...
    ... A build tool does the compilation for you, ... I also strongly recommend using Ant. ... recommended directory structure to build and deploy applications. ...
    (comp.lang.java.help)
  • dll loading problem
    ... For this purpose I'm using Project and ProjectHelper ant classes. ... In addition, I defined my own ant Task, which used native code: ... The first compilation is succeeded without any problems, ...
    (comp.lang.java.programmer)
  • Re: Has anyone here ditched ant in favor of scripting for builds?
    ... compilation to the minimum number of affected compilation units. ... managing the file-level dependencies I used to do with Make. ... Ant is powerful, but I'm increasingly coming to the opinion that it's ... few lines of rigid procedural script would be adequate. ...
    (comp.lang.java.programmer)
  • Re: Reducing debuginfo size by removing unneeded includes
    ... Sam> google did not turn up anything useful. ... less of whether or not they are actually used in that compilation ... Compress DWARF2 debugging information by eliminating duplicated ... I did not include the '-f' part in my google search. ...
    (Linux-Kernel)