Steps:
1) Setup your tomcat to start with debug support. In catalina.bat/sh, find
find (about line 122):2) Setup Eclipse debug. In MyEclipse/Eclipse,
set SET CATALINA_OPTS=
replace with:
SET CATALINA_OPTS=-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044
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'
3) Now, when the program (on your remote server) hit the break points, it will prompt the debug perspective.
4) That's all. Enjoy!