lunedì 26 marzo 2012

Remote debugging Jboss 4.2.x with Eclipse

Modify run.xx file adding remote debug enabled on 8787 port on server side and configure eclipse for remote connection debug.

Locate $jboss_home/bin directory .

According your S.O. you have to add an option in (Unix) or in run.bat (windows) file.

#enable remote debugging
JAVA_OPTS="${JAVA_OPTS} -Xdebug -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"

Eclipse Settings

From menù named Debug Configuration…..
Choose Remote Java Application and add information about  your project and remote server ipaddress and listening port (8787 in this sample).


Nessun commento:

Posta un commento