Skip to content

Commit 976152b

Browse files
committed
Merge branch '3.1.x' into 3.2.x
Closes gh-39422
2 parents 3555adb + 34f6220 commit 976152b

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/using/running-your-application.adoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Doing so lets you attach a debugger to your packaged application, as shown in th
4040

4141
[source,shell,indent=0,subs="verbatim"]
4242
----
43-
$ java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=8000,suspend=n \
43+
$ java -agentlib:jdwp=server=y,transport=dt_socket,address=8000,suspend=n \
4444
-jar target/myapplication-0.0.1-SNAPSHOT.jar
4545
----
4646

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/asciidoc/running.adoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,11 @@ The following configuration suspend the process until a debugger has joined on p
7979
include::../maven/running/debug-pom.xml[tags=debug]
8080
----
8181

82-
These arguments can be specified on the command line as well, make sure to wrap that properly, that is:
82+
These arguments can be specified on the command line as well:
8383

8484
[indent=0]
8585
----
86-
$ mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005"
86+
$ mvn spring-boot:run -Dspring-boot.run.jvmArguments=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005
8787
----
8888

8989

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/docs/maven/running/debug-pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<artifactId>spring-boot-maven-plugin</artifactId>
99
<configuration>
1010
<jvmArguments>
11-
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005
11+
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005
1212
</jvmArguments>
1313
</configuration>
1414
</plugin>

spring-boot-project/spring-boot-tools/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/RunArgumentsTests.java

+4-5
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,10 @@ void parseEmpty() {
6363
}
6464

6565
@Test
66-
void parseDebugFlags() {
67-
String[] args = parseArgs("-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005");
68-
assertThat(args).hasSize(2);
69-
assertThat(args[0]).isEqualTo("-Xdebug");
70-
assertThat(args[1]).isEqualTo("-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005");
66+
void parseDebugFlag() {
67+
String[] args = parseArgs("-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005");
68+
assertThat(args).hasSize(1);
69+
assertThat(args[0]).isEqualTo("-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005");
7170
}
7271

7372
@Test

0 commit comments

Comments
 (0)