1. Start Jetty Server
2. Right key item in eclipse:
Debug as->debug Configurations Select the new_configuration under Remote Java application on the left, and modify name and port, as shown below (this is equivalent to the additional process in. net)
Quote this error: Failed to connect to remote VM. Connection refused.
Connection Refused:connect
Workaround: (First detect if the jetty server started successfully)
(1). Increase environment variable maven_opts:-xdebug-xrunjdwp:transport=dt_socket,address=1044,server=y,suspend=n
(If it's tomcat, you need to find the Tomcat/bin/catalina.bat file, edit it, add the downlink code before catalina_opts.)
Set Catalina_opts=-server-xdebug-xnoagent-djava.compiler=none-xrunjdwp:transport=dt_socket,server=y,suspend=n, address=50001 "Port number for debugging")
(2). Another reason is that you are already in debug, the original turned off, you can click the icon in the red box can be
3. Access the URL address of the debug, will enter the breakpoint
This kind of launch are configured to open the debug perspective when it suspends it's asking if you want to enter a breakpoint, yes