Skip to content

Instantly share code, notes, and snippets.

@Chetan496
Last active November 21, 2022 16:21
Show Gist options
  • Save Chetan496/19af869a9d2ad17b142dc157bf6657aa to your computer and use it in GitHub Desktop.
Save Chetan496/19af869a9d2ad17b142dc157bf6657aa to your computer and use it in GitHub Desktop.
Starting JBOSS in Debug mode

How to start JBoss in Debug mode to allow remote debugging via socket?

By default, remote debugging is not enabled. You can enable it - default port is 8787.

In the file standalone.conf.bat in the <JBOSS_HOME>/bin folder, just uncommnet the following line:

rem Sample JPDA settings for remote socket debugging set "JAVA_OPTS=%JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,address=8787,server=y,suspend=n"

Then restart JBoss.

Remote Debugging will then be enabled.

You can then create a run time configuration in Eclispe to run and debug your apps in the JBoss app server.

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