I have installed tomcat 5.5.20 on an XP system. It has installed as a
service.

I am trying to configure tomcat so I can remote debug my app via IDEA.

 

I have obtained the following information via the web which does explain
how to 

Configure tomcat so I can remote attach to a port and debug.

 

However the issue is my installation bin does not have startup scripts.

Also tomcat came with a nice little gui service wrapper to manage it. I
am trying to figure 

out how to set the following configuration using the supplied gui
manager.

 

Any help with this would really be appreciated. 

 

Can not find the documentation on the service wrapper, as it indicates.

 

The short answer is to add the following options when the JVM is
started:
-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
There are a number of ways you can do this depending on how you normally
start Tomcat: 

*        Set environment variables JPDA_ADDRESS=8000 and
JPDA_TRANSPORT=dt_socket and then start tomcat using catalina jpda
start. 

*        If you run Tomcat using service wrapper, check the
documentation for the service to determine how to set the required JVM
options. 

*        If you start Tomcat from within an IDE, check the documentation
for the IDE to determine how to set the required JVM options. 

The port does not need to be set to 8000, it may be any value
appropriate for your system.

Whilst this is very useful in development it should not be used in
production because of both security and performance implications

 

 

 

Joseph J Marini

Software Consultant Engineer

Telcordia Technologies

Manchester, NH

 

 

Reply via email to