Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start tomcat 6 in debug mode?

How to start the tomcat 6 server in debug mode and use it with Eclipse Ide for remote debugging. ?

Right now i am using command line to start the server :

tomcat6.exe

like image 569
Lokesh Sah Avatar asked Mar 28 '11 11:03

Lokesh Sah


2 Answers

With the tomcat6.exe version you can enable remote debugging by running the tomcat6w.exe application and adding the following 2 java options in the list on the Java tab:

-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n

It worked in my case (Tomcat 6.0.26 for windows).

The Apache Tomcat wiki describes the topic in detail: https://cwiki.apache.org/confluence/display/TOMCAT/Developing#Developing-Debugging

like image 115
axk Avatar answered Sep 23 '22 06:09

axk


As you are using eclipse goto Windows-> Show view -> Add Server.

Choose Perspective as Debug from Windows-> Open Perspective -> Debug

Then Right click on added server and start it in debug mode.

like image 37
abhu74 Avatar answered Sep 24 '22 06:09

abhu74