diff options
Diffstat (limited to 'cbt')
-rwxr-xr-x | cbt | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -113,9 +113,13 @@ mkdir -p $NAILGUN$TARGET nailgun_out=$NAILGUN/target/nailgun.stdout.log nailgun_err=$NAILGUN/target/nailgun.strerr.log +DEBUG="" foo(){ while test $# -gt 0; do case "$1" in + "-debug") + DEBUG="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005" + ;; "-Dlog=nailgun") nailgun_out=/dev/stderr nailgun_err=/dev/stderr @@ -193,9 +197,8 @@ stage1 () { if [ $use_nailgun -eq 1 ] then log "Running JVM directly" "$@" - # -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=localhost:5005 # JVM options to improve startup time. See https://github.com/cvogt/cbt/pull/262 - java $JAVA_OPTS -Xmx6072m -Xss10M -XX:MaxJavaStackTraceDepth=-1 -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xverify:none -cp $NAILGUN$TARGET cbt.NailgunLauncher $(time_taken) "$CWD" "$@" + java $JAVA_OPTS $DEBUG -Xmx6072m -Xss10M -XX:MaxJavaStackTraceDepth=-1 -XX:+TieredCompilation -XX:TieredStopAtLevel=1 -Xverify:none -cp $NAILGUN$TARGET cbt.NailgunLauncher $(time_taken) "$CWD" "$@" else log "Running via background process (nailgun)" "$@" for i in 0 1 2 3 4 5 6 7 8 9; do |