Skip to content

Commit 86d3266

Browse files
committed
Resolve #67 by quoting the -agentlib option to the JVM.
1 parent fdb6993 commit 86d3266

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ In order to debug code running as an executable jar, you must specify the `-agen
525525
to the `-jar` option:
526526

527527
```
528-
java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 -jar target/student-1.0.0.jar
528+
java "-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005" -jar target/student-1.0.0.jar
529529
```
530530

531531
The above `-agentlib` option causes the JVM to output a (rather cryptic) informational message indicating that the JVM
@@ -546,7 +546,7 @@ don't add the `-agentlib` option to the `mvnw` command line. Instead, you speci
546546

547547
```shell
548548
# On UNIX
549-
export MAVEN_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005
549+
export MAVEN_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005"
550550
```
551551

552552
```shell

0 commit comments

Comments
 (0)