1. Open Eclipse, click the Debug button in the upper left corner,
2. Click on the Red area
3. Double-click the red area
4.Project: Select the project you want to debug, Host: Enter your remote ip,port: Remote Call port. How to know the remote port by entering the command line of your remote virtual machine, entering the JPS-V command to find this line
-xrunjdwp:transport=dt_socket,server=y,address=52002,suspend=n
52002 is the calling interface for your remote virtual machine. If not, it is because your remote virtual machine tomacat or JBoss configuration does not support remote debugging, you need to add the following startup parameters to the JVM:
-xdebug-xrunjdwp:transport=dt_socket,address=52002,server=y,suspend=n
Adderss is your own set.
5. After everything is set up, click the Debug button in the lower right corner and you will be able to debug remotely like a local debug.
Eclipse Remote Debug Debug