"Wendy S" <> wrote in message
news:Fr6Ma.57884$1e.41437@fed1read04...
> Miguel De Anda wrote:
> > Is there a way to step through the code in tomcat?
>
> I use JSwat. Look at the startup script for Tomcat, there's a switch to
> start it in debugging mode. Then connect with JSwat and step through the
> code.
>
> There's a bit more to it, but give it a try and post if you get stuck with
> the configuration.
>
> Very informative, I have the source for Tomcat, Struts, Commons, the Java
> source that comes with the JDK, and my project all loaded. I learned more
> the first hour with the debugger than I had reading docs for several
hours.
>
> --
> Wendy in Chandler, AZ
> "BTW, Lucifer just called and he needs a pair of ice skates
"
> James Turner on struts-dev, voting to release Struts 1.1 Final
I've started JSwat with the following command line...
java -Djava.ext.dirs=%JAVA_HOME%\lib -jar jswat.jar
Tomcat (v4.1) was setup as an nt service and I can't figure out how to
attach to the vm. I was reading this page
(
http://www.bluemarsh.com/java/jswat/...omcat-jsp.html) and I
couldn't find most of the files that this person was refering to. I did set
the CATALINA_OPTS but that was about it. I couldn't find the
%CATALINA_HOME%\conf\jk\wrapper.properties file (I don't even have a jk
directory)j.
I also tried setting the debug level of everything to 9. (Everything is
everything that I could find in Tomcat's Admin tool.) But I couldn't connect
to it. I tried connecting to a remote vm using 'localhost' and ports 8080,
8000, 8005, and a few others.
I also tried starting tomcat with "catalina.bat jdpa start"
and connecting to it using shared memory, I tried "jdbconn" but nothing.
Thanks in advance.