Remote Debugging for Tomcat with Eclipse
Steps:1) Setup your tomcat to start with debug support. In catalina.bat/sh, find
find (about line 122):
set SET CATALINA_OPTS=
replace with:
SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=10442) Setup Eclipse debug. In MyEclipse/Eclipse,Run > Open Run Dialog... > Remote Java Application > (Right Click) > New
Input following:
Project: your_project_name
Host: remote_host
Port: remote_port (1044)
Click 'Apply'. Then click 'Debug'
http://docs.google.com/File?id=dc29gqsd_98cz3k34gk
3) Now, when the program (on your remote server) hit the break points, it will prompt the debug perspective.
http://docs.google.com/File?id=dc29gqsd_99kpz8xxg7
4) That's all. Enjoy!http://docs.google.com/File?id=dc29gqsd_100f9z4zsfq
页:
[1]