Accepted answer

you mean remote debug jboss from eclipse ?

from configuring eclipse for remote debugging:

set the java_opts variable as follows:

set java_opts= -xdebug -xnoagent 
   -xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %java_opts%


java_opts="-xdebug -xnoagent 
  -xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n $java_opts"

in the debug frame, select the remote java application node.

in the connection properties, specify localhost as the host and specify the port as the port that was specified in the run batch script of the jboss server, 8787.

jboss debug


you need to define a remote java application in the eclipse debug configurations:

open the debug configurations (select project, then open from menu run/debug configurations) select remote java application in the left tree and press "new" button on the right panel select your web app project and enter 8787 in the port field. here is a link to a detailed description of this process.

when you start the remote debug configuration eclipse will attach to the jboss process. if successful the debug view will show the jboss threads. there is also a disconnect icon in the toolbar/menu to stop remote debugging.


what @vonc says is correct, but you can put the commands to set debug directly into vm arguments on jboss launch.

to do that, open jboss server inside eclipse, go to open launch configuration and put this in vm arguments textbox: vm args


here, if you want to directly debug the server then you can use:

1.)windows ->

2.)show view -> server: right click on server then run in debug mode.


if you set up a jboss server using the eclipse webtools, you can simply start the server in debug mode (debug button in the servers view). this will allow you to set breakpoints in the application that is running inside the jboss.


vonc mentioned in his answer how to remote debug from eclipse.

i would like to add that the java_opts settings are already in run.conf.bat. you just have to uncomment them:

in jboss_home\bin\run.conf.bat on windows:

rem # sample jpda settings for remote socket debugging
set "java_opts=%java_opts% -xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"

the linux version is similar and is located at jboss_home/bin/run.conf

Related Query

More Query from same tag