Hi,
I want to debug my sevlets from within eclipse. I am using the following
environment:
JDK1.2.2
Eclipse 3.0 (but with JRE1.4)
Tomcat 3.2.1 (this is very OLD version of Tomcat)
WinNT 4
As such, I cannot use the fancy plugin tools available becuase they do not
support anything below Tomcat 3.3. I have done a lot of reading but that
has not helped me so far.
Can you guys please help me. I simply need to step strough my servlet
code. I have compiled my servlet with debug="on" using ANT. From the
Run>Debug>Remote Application I try to connect to localhost at port 8000
(also 9876 and 5000) but I always get "failed to connect to remote VM.
Connection refused." message.
I read somewhere that Tomcat needs to be started in debug mode too. But I
do not know how to do that. I start tomcat from the DOS command line
running the startup.bat script. As suggested at some websites, by adding a
few java options such -Xdebug, and a lot more, I should be able to start
Tomcat in debug mode (I have seen these options in many places so I trust
them to be OK). But I do not know how and where to place them in the batch
script. Also, when I do place them, Tomcat crashes with the Dr.Watson
message.
I need help. Please advice.