Skip to content
Usman Zubair
Go back

Debugging Tomcat on a Server

In some cases it may be necessary to connect to one of the server Tomcats to troubleshoot an issue. Doing so is rather easy – you have to modify the start-up parameters to the service.

Open up the registry to HKLM/Software/Apache Software Foundation/Procrun 2.0/(Service-Name)/Parameters/Java

On a 64-bit system the registry key will be under Wow6432Node

Open the Options key and add the following:

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

You can choose a different port, but it should be reflected in your configuration below. You can then use a debug launch configuration to debug it as a Remote Java Application.

Note



Previous Post
Manage Containers with Docker Compose
Next Post
Bash: Using case statements