- From the command line(run as administrator) call the following command
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
After restarting the service you'll be able to run remote debug on port 5005.