Skip to content

Commit

Permalink
fix a problem in windows script when JVM_DEBUG is set (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhongyuan17 authored Jun 13, 2024
1 parent aefc602 commit d71b6e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions build/build-bifromq-starters/bin/bifromq-start.bat
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,10 @@ if "" == "%JVM_DEBUG%" (
set JAVA_DEBUG_PORT=!DEFAULT_JAVA_DEBUG_PORT!
)
rem Use the defaults if JAVA_DEBUG_OPTS was not set
set DEFAULT_JAVA_DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=%DEBUG_SUSPEND_FLAG:-n%,address=*:!JAVA_DEBUG_PORT!"
if not defined DEBUG_SUSPEND_FLAG set DEBUG_SUSPEND_FLAG=n
set DEFAULT_JAVA_DEBUG_OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=!DEBUG_SUSPEND_FLAG!,address=*:!JAVA_DEBUG_PORT!"
if "" == "!JAVA_DEBUG_OPTS!" (
set JAVA_DEBUG_OPTS=!DEFAULT_JAVA_DEBUG_OPTS:"!
set JAVA_DEBUG_OPTS=!DEFAULT_JAVA_DEBUG_OPTS:"=!
)
echo "Enabling Java debug options: !JAVA_DEBUG_OPTS!"
set EXTRA_JVM_OPTS=!JAVA_DEBUG_OPTS! !EXTRA_JVM_OPTS:"=!
Expand Down

0 comments on commit d71b6e0

Please sign in to comment.