1. Create a Java project
Such as:
Package Remoteproject; Public class Main { publicstaticvoid main (string[] args) { // TODO Auto -generated method Stub System.out.println ("Remote test peoject!!!" ); }}
--------------------------------------------------------------------------------------------------------
2,export Runnable Jar Project
--------------------------------------------------------------------------------------------------------
3, set breakpoints on eclipse
--------------------------------------------------------------------------------------------------------
4, open cmd, and migrate to the directory where the output jar package is located
--------------------------------------------------------------------------------------------------------
5, perform remote Debug
java-xdebug-xrunjdwp:transport=dt_socket,server=y,address= "8000"-jar Test.jar
--------------------------------------------------------------------------------------------------------
Start remote Debug on 6,eclipse
--------------------------------------------------------------------------------------------------------
7, success
--------------------------------------------------------------------------------------------------------
Using the remote method, debug Java Engineering