java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 config-1.1.1-SNAPSHOT.jar
D:\workspace\ybzboot\ops\config\target>java -jar -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 config-1.1.1-SNAPSHOT.jar
Listening for transport dt_socket at address: 5005
[2018-09-10 19:37:05.145] [main] INFO o.s.c.a.AnnotationConfigApplicationContext - Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@46cdf8bd: startup date [Mon Sep 10 19:37:05 CST 2018]; root of context hierarchy
.....
....


本文介绍如何使用特定命令启动Java应用程序并配置Xdebug参数,以便进行远程调试。通过监听5005端口实现socket传输,同时展示了Spring框架上下文的初始化过程。
168万+

被折叠的 条评论
为什么被折叠?



