2 Replies Latest reply on Feb 10, 2003 4:41 PM by div_

    Debugging with Eclipse and Jboss

    div_

      I am trying to debug enterprise java beans (on the same server)using the Eclipse IDE/Jboss and so far have had very little success due to the fact that I am unable to connect to the VM when I initiate the debug session! Can anyone recommend or provide a tried and true example of a Eclipse/Jboss project (for newbies) that includes enterprise java beans, that would allow me to use the Eclipse debugger with the Jboss application server. My hope is that I could step through the bean as well as the client. Please include how you may have modified the run.bat to accomplish this? Really any cooperation here would be appreciated :)

        • 1. Re: Debugging with Eclipse and Jboss
          stefankuhn

          Hi!

          Add this line in the run.bat (windows).
          Or appropriate in an UNIX env.

          rem Debug mode
          set JAVA_OPTS=%JAVA_OPTS% -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,suspend=n,server=y,address=3553

          In the IDE (Forte... sorry...)
          Debug->Attach...
          Debugger type: JPDA
          Transport: dt_socket
          Host: [IP-Adress of the Computer where the VM runs]
          Port: 3553 (= the Port set in the line above)

          Good luck!
          Stefan

          • 2. Re: Debugging with Eclipse and Jboss
            div_

            Stephan, thanks for you response! I assume that Eclipse should allow me to "step into" the bean once I designate the appropriate port. Otherwise, I'll try Forte.