Step 1: open bin/startup.bat file
Step 2: add the below lines for debugging with JDPA option (it should starting line of the file )
- set JPDA_ADDRESS=9090
- set JPDA_TRANSPORT=dt_socket
Step 3: in the same file .. go to end of the file modify this line -
call
"%EXECUTABLE%" jpda start %CMD_LINE_ARGS%
instead of line
call
"%EXECUTABLE%" start %CMD_LINE_ARGS%
step 4: then just run bin>startup.bat (so now your tomcat server run in remote mode with port 9090).
step 5: after that lets connect your source project by eclipse IDE with remote client.
step6: In the Eclipse IDE go to "debug Configuration"
step7:click "remote java application" and on that click "New"
step8. in the "connect" tab set the parameter value
project= your source project
connection Type: standard (socket attached)
host: localhost
port:9090
step9: click apply and debug.
so finally your eclipse remote client is connected with the running tomcat server (debug mode).
Hope this approach might be help you.
Ref:
Link