spark-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pwend...@apache.org
Subject spark git commit: [SPARK-4057] Use -agentlib instead of -Xdebug in sbt-launch-lib.bash for debugging
Date Sun, 30 Nov 2014 01:14:28 GMT
Repository: spark
Updated Branches:
  refs/heads/master 95290bf4c -> 938dc141e


[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 <sarutak@oss.nttdata.co.jp>

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


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/938dc141
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/938dc141
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/938dc141

Branch: refs/heads/master
Commit: 938dc141ee4448c20441fa9dfa3a9897a11ed4b6
Parents: 95290bf
Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>
Authored: Sat Nov 29 20:14:14 2014 -0500
Committer: Patrick Wendell <pwendell@gmail.com>
Committed: Sat Nov 29 20:14:14 2014 -0500

----------------------------------------------------------------------
 sbt/sbt-launch-lib.bash | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/938dc141/sbt/sbt-launch-lib.bash
----------------------------------------------------------------------
diff --git a/sbt/sbt-launch-lib.bash b/sbt/sbt-launch-lib.bash
index 84a6f7a..fa7222d 100755
--- a/sbt/sbt-launch-lib.bash
+++ b/sbt/sbt-launch-lib.bash
@@ -104,7 +104,7 @@ addResidual () {
   residual_args=( "${residual_args[@]}" "$1" )
 }
 addDebugger () {
-  addJava "-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=$1"
+  addJava "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=$1"
 }
 
 # a ham-fisted attempt to move some memory settings in concert


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org


Mime
View raw message