eclipse spring boot 断点调试方法

1.mvn中输入:html

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

2.eclipse的spring -boot项目启动成功的截图以下,圈红线处表示启动成功:
这里写图片描述spring

3、利用debug工具链接调试

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

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

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

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

参考文章:spring-boot

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

相关文章
相关标签/搜索