Jboss Debugging in Eclipse

JBoss debugging in Eclipse

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

How to debug web project in MyEclipse using JBoss server?

You need to define a Remote Java Application in the Eclipse debug configurations:

  • 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.

When you start the remote debug configuration Eclipse will attach to the JBoss process. If successful the debug view will show the JBoss threads. There is also a disconnect icon in the toolbar/menu to stop remote debugging.

Can We Debug the java file which is deploy in jboss application server?

You can attach a remote debugger if you're using Eclipse. All you need is a server name, port, and to add some configurations to the JBoss launch.

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

These arguments should be used to run JBoss, then you can connect to port 8787 (or whatever you specify) to remotely debug.

Source not found message in Eclipse with JBoss at debug mode - breakpoint is in MY CODE

You might have configured your Debug settings for a particular project in your workspace(in eclipse) which is deployed in JBOSS as jar or war, if the breakpoint is inside code that may be inside some other project(jar, war) which may be a dependency of the project for which you configured your debug settings then eclipse would not be able to find the source code. this is why you need to 'edit source look up' to the source code containing the source

How to debug a JBoss 7.1 application in eclipse Luna

I have now install the "JBoss Developer Studio (Core Features)" plugin (V8.0.0.Beta3). Now I can debug JBoss applications via the debug icon of the JBoss panel.

Sample Image

I'm sure this didn't work yesterday (with the "JBossAS Tools V3.0.0.Beta3" plugin).

Also notice that I must removing and reinstalling the eclipse IDE befor I could installing the JBoss Developer Studio plugin. Otherwise (without reinstalling eclipse) I cannot install the JBoss Developer Studio plugin. I assume there is any old stuff of the removed JBoss Tools 3.0.0 plugin which prevents a successful installation of the new plugin ...



Related Topics



Leave a reply



Submit