Re: Need Help! Problems with running eclipse debugger with tomcat
- From: "jung_h_park@xxxxxxxxx" <jung_h_park@xxxxxxxxx>
- Date: 14 Nov 2006 13:04:15 -0800
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
.
- Prev by Date: Re: Re-engineering source code between 1.4 and 1.5
- Next by Date: JDeveloper 10g » Build Java Application as .exe
- Previous by thread: Re-engineering source code between 1.4 and 1.5
- Next by thread: JDeveloper 10g » Build Java Application as .exe
- Index(es):
Relevant Pages
|
|