I use bugseeker 1.0.2 for Java2: http://www.karmira.com/products/bugseeker2/
I created a new environment variable: JPDA_FLAGS = -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 Then I created a Tomcat Service which I use exclusively for debugging: %CATALINA_HOME%\bin\tomcat.exe -install Apache-Catalina-JPDA %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.jar -Dcatalina.home=%CATALINA_HOME% %JPDA_FLAGS% %CATALINA_OPTS% -Xrs -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log I am able to attach to the socket using bugseeker's remote debugging. You should be able to do the same in JSwat. If you want to use bugseeker and want a project that is set up to work properly to debug Tomcat servlets, send me a personal email and I'll send you the project file. Jake At 10:09 AM 7/11/2002 +0200, you wrote: >Can somebody provide me a usable "HOW-TO" for >debugging servlets under TomCat? > >I want to connect remotely TomCat using e.g. >JSwat or cqjd (JPDA), but without success. > >I am using Tomcat 4.0.3 and 4.1.7beta, have >CATALINA_OPTS set (-Xdebug -Xnoagent -Djava.compiler=NONE >-Xrunjdwp:transport=dt_socket,server=y,address=8888, >suspend=n) and still is does't work. > >I must be doing something fundamentally wrong as >nobody else seems to have problems and in the documentations >(e.g. JSwat) there is written that this should be VERY >easy... :-))) > >Help appreciated! > >Thanks... > > >_________________________________________________________________ >Werden Sie Mitglied bei MSN Hotmail, dem größten E-Mail-Service der Welt: >http://www.hotmail.com/de > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>