Springboot debug 启动参数

JDK版本:JDK1.3.x or earlier

命令格式:

java -Xnoagent -Djava.compiler=NONE -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=<debug端口号> -jar <包名>.jar

示例:

java -Xnoagent -Djava.compiler=NONE -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8090 -jar abc.jar

 

JDK版本:JDK1.4.x

命令格式:

java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=<debug端口号> -jar <包名>.jar

示例:

java -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8090 -jar abc.jar

 

JDK版本:JDK 5-8

命令格式:

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=<debug端口号> -jar <包名>.jar

示例:

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8090 -jar abc.jar

 

JDK版本:JDK 9 or later

命令格式:

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:<debug端口号> -jar <包名>.jar

示例:

java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8090 -jar abc.jar

 

idea中配置远程debug

 

posted @ 2022-08-17 17:18  流年如水烟雨随风  阅读(775)  评论(0编辑  收藏  举报