본문 바로가기

Dev/Orvercome 3sec memory

Eclipse "Remote Debugging" Setting with JBoss Portal, Fuse

728x90

1. JBoss Portal

1.1 Open {JBossPortal-Home Dir}/bin/standalone.bat file

1.2 Activate DEBUG_MODE from false to true

=======================================================================================

.......

rem By default debug mode is disable.

set DEBUG_MODE=true

set DEBUG_PORT=8787

rem Set to all parameters by default

.......

=========================================================================================

1.3 Check Port (which is used in Eclipse) {JBossPortal-Home Dir}/bin/standalone.conf.bat file

=========================================================================================

.......

rem # Sample JPDA settings for remote socket debugging

set "JAVA_OPTS=%JAVA_OPTS% -agentlib:jdwp=transport=dt_socket,address=8788,server=y,suspend=n"

.......

=========================================================================================

1.4 In Eclipse "Run > Debug Configurations..."

Mouse right click on "Remote JavaApplication > New"


 Item

 Value

 Name

 e.g.) JBoss Portal

 Project

 Project in Eclipse which is going to be ".war" file

 Connection Type

 Standard(Socket Attach) (Default)

 Host

 localhost 

 Port

 8788 


Done


2. Fuse

2.1 Open {JBossFuse-Home Dir}/bin/karaf.bat file

2.2 Activate DEBUG_MODE by insert 

=========================================================================================

.......

set KARAF_DEBUG=true

.......

=========================================================================================

2.3 Check Port

=========================================================================================

.......

set CLASSPATH=%LOCAL_CLASSPATH%;%KARAF_BASE%\conf

set DEFAULT_JAVA_DEBUG_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005

.......

=========================================================================================

2.4 In Eclipse "Run > Debug Configurations..."

Mouse right click on "Remote JavaApplication > New"


 Item

 Value

 Name

 e.g.) JBoss Fuse

 Project

 Project in Eclipse which is going to be bundles of Fuse

 Connection Type

 Standard(Socket Attach) (Default)

 Host

 localhost 

 Port

 5005


Done


3. Open Debug perspective in Eclipse and Choose server in "Debug as" menu on the top.