Skip to content

Commit 237ccab

Browse files
committed
Merge pull request spark-jobserver#398 from addisonj/debug
add in an option to debug
2 parents 9130ccd + 0876459 commit 237ccab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/setenv.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ if [ "$PORT" != "" ]; then
5353
CONFIG_OVERRIDES+="-Dspark.jobserver.port=$PORT "
5454
fi
5555

56+
if [ "$DEBUG_PORT" != "" ]; then
57+
CONFIG_OVERRIDES+="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=$DEBUG_PORT "
58+
fi
59+
5660
if [ -z "$JOBSERVER_MEMORY" ]; then
5761
JOBSERVER_MEMORY=1G
5862
fi

0 commit comments

Comments
 (0)