Please follow the steps below (I have successfully debugged in the Eclipse 3.2, JDK 1.5_08) environment.
1. When you start the Java program, in the Java startup command, add the following parameters
-xdebug-xrunjdwp:transport=dt_socket,address=1234,server=y,suspend=n
Note: The suspend parameter indicates whether to wait for the JPDA debug end to connect when starting. n indicates no
2. After configuration, you can run the Java program, see the following prompts to indicate that the debug function has been turned on
Listening for transport dt_socket at address:1234
3. Open eclipse, in menu "Run"-> "Debug ..." Pop-up dialog box, select Remote Java application, new Debug Configuration
* Project is the program source code project that is running
* Host,port Host: The port where the IP port where the running Java program resides is set in the Java Run command
4. Complete, run debug directly. Next, the same method as debugging a local program.