Debug JBoss with IDEA

From Shrubbery

Jump to: navigation, search


How to start JBoss and debug it remotely with IDEA
  1. Create a 'remote debug' runtime configuration in IDEA. Copy the JVM debug parameters.
  2. Set JAVA_OPTS to start the JVM in debug mode. In shell it might look like this:
    export JAVA_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005 $JAVA_OPTS"
  3. Use run.sh to start JBoss.
  4. Click debug on the runtime configuration to connect to the JVM.
Personal tools