1 Reply Latest reply on May 28, 2003 2:38 AM by Bernd Zeitler

    Configuring Remote Debugging with JBuilder 8

    mirageman Newbie


      I've been trying to configure JBoss 3.0.5 running under jdk1.3 with JBuilder 8 for remote debugging without success.

      In my JBoss run.bat script I have set the Java Options as follows:

      set JAVA_OPTS= -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=3999,suspend=y

      In JBuilder I create a new Run Configuration, set the Build Target to None, click the Debug tab and switch on Enable Remote Debugging. I select the Attach option and leave the Host Name as localhost, as Jboss is running locally. I leave the transport type as dt_socket and the address as 3999.

      When I fire up Jboss, in my command window I see the Bootstrap Environment parameters echoed, and then nothing else. Jboss hangs. I then switched the suspend flag to suspend=n, and this time Jboss fires up fine. Then, when I attach my Jbuilder debug config to it, things seem fine. However, when I set breakpoints, Jbuilder ignores them. Can someone please tell me where I'm going wrong?

      Thanks in advance.

        • 1. Re: Configuring Remote Debugging with JBuilder 8
          Bernd Zeitler Expert

          I am not familiar with JBuilder8, but with remote debugging ;-)
          suspend=y means, the vm won't start until a debugger is connected (that's why JBoss "hangs")

          If JBuilder won't complain with something like "can't connect" or "connection refused" when starting the debug session, the connection is ok.

          If breakpoints are ignored, be sure you are using the source files for the running binary. Better build JBoss out of the sources.

          If this won't work: it is not a JBoss problem, try a JBuilder forum instead.