Remote Debugger in Adempiere using Jboss
go to JBOSS folder
open “run.conf”, find “JAVA_OPTS”
un-comments this line.
use address port which is unused in your network/localhost
open “run.bat”, find “JAVA_OPTS”
un-comment this line
set JAVA_OPTS=-Xdebug-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=y %JAVA_OPTS%
restart Jboss server , and run run_server2.bat
when there is “listening … port…” in your cmd/console, its ready for debug.
the deployment process from jboss will hanging, it will waiting connection from remote debugger in eclipse.
in eclipse you can start remote debuger Run->Debug Configurations.
in left menu click Remote Java Applicator, input your project nama as you like.
for connection properties, Host : localhost, Port : 8787.
the host name is depends on your environment, the port address is depends on first configuration in “run.conf” and “run.bat”
in source tab, add your adempiere project.
and its done.
click “debug” button, if its successful the jboss deployment process will continue….
change “suspend” argument with “n”, it will make jboss not listening to eclipse connection
set JAVA_OPTS=-Xdebug-Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTS%