Skip to content

Commit 0876459

Browse files
author
Addison Higham
committed
add in an option to debug
1 parent 9130ccd commit 0876459

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)