[jboss-jira] [JBoss JIRA] (WFLY-155) standalone.bat has an error for setting debug mode with --debug

James Perkins (JIRA) issues at jboss.org
Thu May 8 16:27:56 EDT 2014


    [ https://issues.jboss.org/browse/WFLY-155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12966595#comment-12966595 ] 

James Perkins commented on WFLY-155:
------------------------------------

Looks like it was already fixed in WFLY-2261.

> standalone.bat has an error for setting debug mode with --debug
> ---------------------------------------------------------------
>
>                 Key: WFLY-155
>                 URL: https://issues.jboss.org/browse/WFLY-155
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Scripts
>            Reporter: James Perkins
>            Assignee: James Perkins
>            Priority: Minor
>             Fix For: 8.0.0.Alpha1
>
>
> In the released EAP 6.1.0-alpha, standalone.bat has these lines:
> {code}
> 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"
>   )
> )
> {code}
> The check on the error level is wrong. If "findstr" *can* find the agentlib setting, then errorlevel will be 0.
> So the correction is:
> {code}
> if errorlevel == 1 (
> {code}
> should be:
> {code}
> if errorlevel == 0 (
> {code}



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the jboss-jira mailing list