This content has been marked as final. Show 1 reply
I want to run jboss in debug mode. Also, Let me know the command for this. Or any particular steps to be followed if we are running with out eclipse?
I do not have experience using JBoss Tools. For debugging, i use plain Eclipse (without any additional plugins). Here's how i attach the debugger with 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.