- From the command line(run as administrator) call the following command
%TOMCAT_HOME%
/bin/tomcat6w
.exe
//ES//
<ServiceName>
where <ServiceName> is actual windows service name
*A properties dialog box pops out. - Navigate to the Java tab and add the following entries in the Java Options section
-Xdebug
-Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n
After restarting the service you'll be able to run remote debug on port 5005.