Config remote debug for tomcat hosted web application
Modify your tomcat startup script (startup.bat):
Configure eclipse debug:
- Add this at the beginnng of startup.bat script
- set JPDA_ADDRESS=8000
- set JPDA_TRANSPORT=dt_socket
- Replace
- "call %EXECUTABLE%" start %CMD_LINE_ARGS%"
- to "call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%"
- Now tomcat start with opening port 8000 for debugging.
Configure eclipse debug:
- In Run > Debug Configurations add a new debug configuration by selecting 'Remote Java Application'
- Use port 8000 and select the correct project to debug
评论
发表评论