[jboss-jira] [JBoss JIRA] (WFLY-155) standalone.bat has an error for setting debug mode with --debug
Heiko Rupp (JIRA)
issues at jboss.org
Mon May 5 02:18:56 EDT 2014
[ https://issues.jboss.org/browse/WFLY-155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12965363#comment-12965363 ]
Heiko Rupp commented on WFLY-155:
---------------------------------
It looks like this error may still exist in WFLY 8.0.0.GA
snert:wildfly-8.0.0.Final hrupp$ bin/standalone.sh --debug
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /Users/hrupp/downloads/wildfly-8.0.0.Final
JAVA: /Library/Java/JavaVirtualMachines/1.7.0u.jdk/Contents/Home/bin/java
JAVA_OPTS: -server -XX:+UseCompressedOops -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n
=========================================================================
Listening for transport dt_socket at address: 8787
08:10:58,385 INFO [org.jboss.modules] (main) JBoss Modules version 1.3.0.Final
08:10:58,643 ERROR [stderr] (main) JBAS015801: Invalid option ''
[...]
08:10:58,663 INFO [stdout] (main) --debug [<port>] Activate debug mode with an optional
> 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