I have java application with Eclipse IDE and WebLogic 11g server. Is it possible to debug application remotely? if yes how?
In startWeblogic.cmd
file, add the following line before ENDLOCAL
line.
set JAVA_OPTIONS=%JAVA_OPTIONS% -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n
The Weblogic Server console should display the message:
Listening for transport dt_socket at address: 8453
In eclipse follow the instructions below:
Docs:
First, make sure you enable remote debugging on your startup script for Weblogic:
-Xdebug -Xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=n
(address is the port number; remember this number)
Second, you need to set up a new Remote Web Application debug configuration in Eclipse:
Run -> Debug Configurations...
then create a new Remote Web Application configuration. Make sure you specify your host and port (noted above), and add any source for the web app on the Source tab.
You should now be able to run that debug configuration to debug a web app in Eclipse on the specified Weblogic server.