Browse Source

activate debug settings based on env var

master
Jonathan Cobb 3 years ago
parent
commit
9cd5cc3d5d
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      bin/jvcl

+ 6
- 1
bin/jvcl View File

@@ -19,4 +19,9 @@ SCRIPT="${0}"
SCRIPT_DIR="$(cd "$(dirname "${SCRIPT}")" && pwd)"
. "${SCRIPT_DIR}"/jvcl_common

java -cp "${JVCL_JAR}" -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005 jvcl.main.Jvcl "${@}"
DEBUG=""
if [[ -n "${JVCL_DEBUG}" ]] ; then
DEBUG="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=*:5005"
fi

java -cp "${JVCL_JAR}" ${DEBUG} jvcl.main.Jvcl "${@}"

Loading…
Cancel
Save