Details
-
Bug
-
Resolution: Done
-
Minor
-
None
-
None
Description
In the released EAP 6.1.0-alpha, standalone.bat has these lines:
rem Set debug settings if not already set if "%DEBUG_MODE%" == "true" ( echo "%JAVA_OPTS%" | findstr /I "\-agentlib:jdwp" > nul if errorlevel == 1 ( echo Debug already enabled in JAVA_OPTS, ignoring --debug argument ) else ( set "JAVA_OPTS=%JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,address=%DEBUG_PORT%,server=y,suspend=n" ) )
The check on the error level is wrong. If "findstr" can find the agentlib setting, then errorlevel will be 0.
So the correction is:
if errorlevel == 1 (
should be:
if errorlevel == 0 (