Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JBoss debugging in Eclipse

How do you configure JBoss to debug an application in Eclipse?

like image 331
Etam Avatar asked Feb 05 '09 14:02

Etam


People also ask

How do I debug JBoss in Eclipse?

Open the debug configurations (select project, then open from menu run/debug configurations) Select Remote Java Application in the left tree and press "New" button On the right panel select your web app project and enter 8787 in the port field. Here is a link to a detailed description of this process.

How do I run debugging in Eclipse?

Starting the Debugger. To debug your application, select a Java file with a main method. Right-click on it and select Debug As Java Application. If you started an application once via the context menu, you can use the created launch configuration again via the Debug button in the Eclipse toolbar.


2 Answers

You mean remote debug JBoss from Eclipse ?

From Configuring Eclipse for Remote Debugging:

Set the JAVA_OPTS variable as follows:

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

or:

JAVA_OPTS="-Xdebug -Xnoagent    -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n $JAVA_OPTS" 

In the Debug frame, select the Remote Java Application node.

In the Connection Properties, specify localhost as the Host and specify the Port as the port that was specified in the run batch script of the JBoss server, 8787.

JBoss Debug

like image 151
VonC Avatar answered Sep 18 '22 01:09

VonC


If you set up a JBoss server using the Eclipse WebTools, you can simply start the server in debug mode (debug button in the servers view). This will allow you to set breakpoints in the application that is running inside the JBoss.

like image 33
Fabian Steeg Avatar answered Sep 17 '22 01:09

Fabian Steeg