How to debug JBOSS application in netbeans? -


I came from a .NET background, where I can easily debug a webpage by adding a breakpoint and Running / Running

I am working on the JavaAbb3 application. I have successfully deployed ajub project on the server, but what do I want to know, controllers and ideas develop. To do this I want to be able to run / debug the project in Net Bean.

I've added both JBOSS5 and JBOSS6 to the IDE, but it takes more than a minute to get started. Sometimes it's completely hanging when I run a glass of fish. I do not have this problem - it takes a few seconds to get started. PC Speak is up to date, it's Core 7 which includes SSD and 4GB RAM is there.

Thanks

  1. For this type JAVA_OPTS Set:
     -agentlib: jdwp = transport = dt_socket, address = 8787, server = y, suspended = n  
    1. < Strong> debug & gt; & Gt; Attach the debugger
    2. Make sure the port is 8787 .
    3. Click OK .

      Remote debugging is enabled; Normally set breakpoints.


      or enable remote debugging as follows:

      1. % JBOSS_HOME% / domain / configuration / domain.xml < Li> Insert the following element:
         
      2. "Lang-XMLHappyprint-override"> & lt; Jvm-options & gt; & Lt; Option value = "- agentlib: jdwp = transport = dt_socket, address = 8787, server = y, suspended = n" /> & Lt; / JVM-option & gt;
      3. Save the file.
      4. Restart JBoss.
      5. Debug & gt; & Gt; Attach the debugger
      6. Make sure the port is 8787 .
      7. Click OK .

        Remote debugging is enabled; Set breakpoints as usual.

        Display - Debugger console panel should be shown:

          localhost: 8787 user program running    

Comments