Skip to content

Commit 938dc14

Browse files
sarutakpwendell
authored andcommitted
[SPARK-4057] Use -agentlib instead of -Xdebug in sbt-launch-lib.bash for debugging
In -launch-lib.bash, -Xdebug option is used for debugging. We should use -agentlib option for Java 6+. Author: Kousuke Saruta <[email protected]> Closes #2904 from sarutak/SPARK-4057 and squashes the following commits: 39b5320 [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into SPARK-4057 26b4af8 [Kousuke Saruta] Improved java option for debugging
1 parent 95290bf commit 938dc14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbt/sbt-launch-lib.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ addResidual () {
104104
residual_args=( "${residual_args[@]}" "$1" )
105105
}
106106
addDebugger () {
107-
addJava "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=$1"
107+
addJava "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$1"
108108
}
109109

110110
# a ham-fisted attempt to move some memory settings in concert

0 commit comments

Comments
 (0)