Skip to content

Instantly share code, notes, and snippets.

@juliojsb
Created March 23, 2016 22:19
Show Gist options
  • Save juliojsb/fcfced0290d25049b09d to your computer and use it in GitHub Desktop.
Save juliojsb/fcfced0290d25049b09d to your computer and use it in GitHub Desktop.
Enable remote debugging in Jboss
For Jboss 4,5,6 AS and 6.x EAP standalone mode, append to your JAVA_OPTS the following option:
-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
For Jboss 7.x AS/EAP 6.x in domain mode, in host.xml add the corresponding jvm option in the server group you need to debug:
<server name="server-one" group="main-server-group">
<!-- Remote JPDA debugging for a specific server
<jvm name="default">
<jvm-options>
<option value="-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"/>
</jvm-options>
</jvm>
@mhicauber
Copy link

mhicauber commented Dec 13, 2018

@MITHU0310 @MITHU0310 you can give a --debug option when launching bin/standalone.sh
See the comments and variables at the top of the bin/standalone.sh file

@TheGabiRod
Copy link

-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
Must be carefull with spaces after commas or it won't work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment