1 2 Previous Next 20 Replies Latest reply on Jun 2, 2008 11:20 AM by jaikiran Go to original post
      • 15. Re: Eclipse + JBoss Debug Mode issue
        nameghino

         

        "jaikiran" wrote:

        In that case, i am not sure how the server is started in debug mode. Probably the IDE picks up some other configuration file for starting JBoss?


        I'm using Eclipse w/ JBoss Tools, but I'm not sure about how Eclipse starts the debug mode. Any pointers where I can check?

        "jaikiran" wrote:

        So, as mentioned in one of my earlier replies, you can attach the debugger to the server "after" the application has been deployed. This way you don't run into this issue (which you mention happens "during" application deployment).


        How can this be done? Does this have anything to do with remote debugging?

        Still, I'm trying to figure out the reason why this happens, but can't seem to get anything clear.

        Thanks!

        • 16. Re: Eclipse + JBoss Debug Mode issue
          praveenas


          Thats great!!

          Please help me out if I can use Jboss tools as a plug in to my eclipse which is currently using tomcat. I ve tried to download jboss tools but the jboss download site is not responding and showing some error. Actually, I want to run Jboss in Debug mode for debugging a very big code. Please let me know the best way. Coz, I dint find proper response from the forum when I have posted as a seperate thread.

          Thank you in advance.

          Praveena.

          • 17. Re: Eclipse + JBoss Debug Mode issue
            jaikiran

             

            "praveenas" wrote:

            Please let me know the best way. Coz, I dint find proper response from the forum when I have posted as a seperate thread.



            Praveena,

            Please do not keep posting in unrelated threads. If you don't get response to your other thread, that does not mean you have to hijack other user's thread. If you haven't received a response, it might be either because the question is not clear or people who have read your question don't have any inputs that might help you.



            • 18. Re: Eclipse + JBoss Debug Mode issue
              jaikiran

               

              "nameghino" wrote:

              How can this be done? Does this have anything to do with remote debugging?

              Still, I'm trying to figure out the reason why this happens, but can't seem to get anything clear.



              Throughout this thread, i was always thinking that we were discussing about "Remote Debugging" through (plain) Eclipse. Here's how attach a debugger through Eclipse:

              1) Edit the run.bat file of JBoss to use the following debug options (note the suspend=n option, this tells the server not to wait till the debugger attaches itself to the server ):

              set JAVA_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%


              2) Start the server from the command line, using the run.bat file.

              3) Once the server has completely started, i go to my (plain) Eclipse project and create a new "Remote Java Application" debug session (if it's not already created). In the "Port" text box i specify 8787 (the same as what i have in the run.bat). Then click on Debug.


              • 19. Re: Eclipse + JBoss Debug Mode issue
                nameghino

                Great... I'll give it a try as soon as I can. Is "pressing the debug button" in Eclipse the same as this?

                • 20. Re: Eclipse + JBoss Debug Mode issue
                  jaikiran

                   

                  "nameghino" wrote:
                  Great... I'll give it a try as soon as I can. Is "pressing the debug button" in Eclipse the same as this?


                  Pressing the debug button will launch the last saved debug settings. So pressing the debug button the first time will not probably launch the correct one. After you configure the debug options (as mentioned in my earlier reply) and successfully launch the first run, the subsequent runs can rely on just pressing the debug button.


                  1 2 Previous Next