Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-155

standalone.bat has an error for setting debug mode with --debug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 8.0.0.Alpha1
    • None
    • Scripts
    • 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 (
      

      Attachments

        Activity

          People

            jperkins-rhn James Perkins
            jperkins-rhn James Perkins
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: