2 Replies Latest reply on May 6, 2004 8:21 AM by jae

    run jboss in debug mode

    saroj Newbie

      anybody can help me

      how to run jboss in debug mode in Linux OS.

      thanks in advance.
      Saroj

        • 1. Re: run jboss in debug mode
          Lothar Egger Newbie

          hello Saroj

          by debug mode do you mean:

          debug output ?
          you may configure your output to cosole/log in
          conf/log4j.xml

          attach a debugger to a runnig jboss?
          you may configure the JPDA settings in
          bin/run.conf
          restart jboss
          then attach your debugger to the address/port

          cheers
          L

          • 2. Re: run jboss in debug mode
            jae Master

            copy the run.sh startup script to debug.sh (or whatever you want) and replace the the $JAVA_OPTS line in the file w/ this one:

            JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME
            -classic -Xdebug -Xnoagent -Djava.compiler=NONE
            -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y"
            


            the above is taken directly out of the run.bat file. (make sure it is all on one line in the file).