Eclipse spring boot power-off debugging method

1. Enter in mvn:

spring-boot:run -Drun.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"

2. The screenshot of the successful startup of the spring-boot project of eclipse is as follows. The red line in the circle indicates that the startup is successful:
write picture description here

三、利用debug工具连接调试

1.关于eclipse的debug连接调试,可右击项目–>选择debug as–>Debug Configuration…–>Remote Java Application–>右击new即可。

a.remote java application:
这里写图片描述

b.配置host以及port,因项目在本地启动,故使用localhost,port用之前配置的address的值,即5005端口。接着点击debug连接调试
这里写图片描述

c.debug启动连接调试成功如图所示,初始配置之后,下次可选择点击小虫子连接调试
这里写图片描述

参考文章:

https://www.2cto.com/kf/201708/668239.html

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325835591&siteId=291194637