Reprint: Http://www.blogjava.net/zJun/archive/2006/04/21/42386.aspx
In fact, the most effective way to solve this problem is to install Plug-ins: simple, direct. But if you do not want to install too many plugins into eclipse or if the Tomcat and eclipse you are debugging are not on the same machine, you will need to debug directly using Eclipse's remote debug with the following configuration steps:
1. Set up Tomcat's operating environment:
Open Startup.bat file, find line call "%executable%" Start%cmd_line_args%
Before adding the following settings: Set catalina_opts =-server-xdebug-xnoagent-djava.compiler = None-xrunjdwp:transport = dt_socket, server = y, suspend = n, address = XXXX
or directly modify the Catalina.bat file as follows: Set JPDA = JPDA
Set jpda_transport = Dt_socket
Set jpda_address = XXXX
Where xxxx is a custom-not-conflicting port number.
2. Set remote Debug for eclipse:
Open the Debug Settings window in Eclipse, select Remote Java application, create a new debug entry, enter the server IP and just set the port number, click OK to enter the debug state.
3.usage. Request process does not finished.
1 U can set watch variable.
2) Click (Ctrl +shift +i), show param value.