title: JBoss EAP 6 configure single server for remote debugging in domain mode
body: <p>I have Domain controller, one Host controller and one server running in the same machine. </p>
  
  <p>I'm using IDEA to connect to the remote server for debugging but it's not stopping on break points even though it's running the code (i've verified with system outs). </p>
  
  <p>I've enabled <code>HOST_CONTROLLER_JAVA_OPTS</code> and <code>PROCESS_CONTROLLER_JAVA_OPTS</code> for remote debugging in $JBOSS_HOME/bin/domain.conf: </p>
  
  <pre><code># Sample JPDA settings for remote socket debuging.
  PROCESS_CONTROLLER_JAVA_OPTS="$PROCESS_CONTROLLER_JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8788,server=y,suspend=n"
  HOST_CONTROLLER_JAVA_OPTS="$HOST_CONTROLLER_JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
  </code></pre>
  
  <p>When i start JBoss server i can see from netstat that it's properly listening to ports 8787 and 8788. If i list the processes running in the system i can see one for Domain controller, one for Host controller and one for the server (server1). Domain and Host controllers have the debug options specified in their launch properties but they're missing for server1. </p>
  
  <p>I've been looking at the various XML, .conf and .sh files for a while now but i can't figure out how i could specify server1 to use the remote debugging options. Is there a way to remotely debug a single server in domain mode? </p>