Thursday, February 7, 2013

Remote Debugging on WebLogic Server with Eclipse


            1.  Go to the WebLogic Server domain installed directory and open the bin folder.
2.      Open the startWebLogic.sh file and add the statement highlighted in red as depicted in the below diagram:
JAVA_OPTIONS="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8888,server=y,suspend=n"

3.      Go to the Eclipse IDE and open a new debug configuration create a new “Remote Java Application”.
4.      Modify the configuration in the Remote Java Application dialog as follows:
 The value set for the “address” in Step1 should be equal to the Port value. (e.g. 8888)
 
5.      Using the UNIX terminal go to the folder where the startWebLogic.sh file resides and type “./startWebLogic.sh” to start the WebLogic server and from Eclipse run the newly created debug configuration.

No comments: