Wiki source code of Debugging Java code
Last modified by Sebastian Marsching on 2022/05/27 22:19
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | {{toc/}} |
2 | |||
3 | # Java command line options for remote debugging | ||
4 | |||
5 | ```bash | ||
6 | JPDA_TRANSPORT="dt_socket" | ||
7 | JPDA_ADDRESS="8000" | ||
8 | java -Xdebug -Xrunjdwp:transport=$JPDA_TRANSPORT,address=$JPDA_ADDRESS,server=y,suspend=n | ||
9 | ``` | ||
10 | |||
11 | # Maven options for remote debugging | ||
12 | |||
13 | ```bash | ||
14 | MAVEN_OPTS="-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n" | ||
15 | ``` | ||
16 | |||
17 |