You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Apache Wiki <wi...@apache.org> on 2007/12/04 20:17:34 UTC

[Tomcat Wiki] Update of "HowTo" by ChristophePierret

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.

The following page has been changed by ChristophePierret:
http://wiki.apache.org/tomcat/HowTo

The comment on the change is:
Added info on debugging Tomcat run as a Windows service

------------------------------------------------------------------------------
  
  If Eclipse happens to be your IDE of choice, you can get more information at [http://www.jacoozi.com/index.php?option=com_content&task=view&id=119&Itemid=134 Remote Debugging with Eclipse (Jacoozi Article)].
  
+ == How do I debug a Tomcat application when Tomcat is run as a Windows service ? ==
+ You can debug the tomcat service by editing the service parameters as follows.
  
+    * Launch a command prompt
+ 
+    * Set the proper CATALINA_HOME environment variable : pointing to tomcat home
+ 
+    * Run the following command:
+ 
+ {{{
+ %CATALINA_HOME%\bin\tomcat6w.exe //ES//tomcat6
+ }}}
+ 
+    * Select the Java tab in the properties dialog box,
+ 
+    * Add the following two lines to the Java Options text box:
+ 
+ {{{
+ -Xdebug
+ -Xrunjdwp:transport=dt_socket,address=127.0.0.1:1044,server=y,suspend=n
+ }}}
+ 
+ If you want to allow remote debugging, replace 127.0.0.1 by your server IP address.
+    * Click on "Apply" and close the dialog by clicking on "OK"
+ 
+    * Restart the Apache Tomcat service
+ 
+    * Use your IDE to connect to Tomcat through port 1044
+ 
+ If Eclipse happens to be your IDE of choice, you can get more information at [http://www.jacoozi.com/index.php?option=com_content&task=view&id=119&Itemid=134 Remote Debugging with Eclipse (Jacoozi Article)].
+ For IntelliJ IDEA you choose a remote debug target and set transport to "socket" and mode to "attach" , then you specify the host (127.0.0.1) and port (1044)
  
  == How do I enable Server Side Includes (SSI)? ==
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org