Allow hop-gui.sh to be debugged
@@ -36,9 +36,12 @@ fi
if [ -z "$HOP_OPTIONS" ]; then
HOP_OPTIONS="-Xmx2048m"
fi
+
# optional line for attaching a debugger
#
-# HOP_OPTIONS="${HOP_OPTIONS} -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
+if [ "$1" = "debug" ] || [ "$1" = "DEBUG" ]; then
+ HOP_OPTIONS="${HOP_OPTIONS} -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005"
+fi
# Add HOP variables if they're set:
#
