Eclipse WebLogic debugging

自作多情 提交于 2019-12-31 04:08:25

问题


I know you can debug by just clicking the debug icon in Eclipse. Is it possible to start WebLogic from the command line with debugging and still debug? When I do that, in Eclipse under server I see that the status is "Started", not "Debugging". Can this only be done by setting up remote debugging?


回答1:


You need to add parameters to the JAVA_OPTIONS in the startWebLogic.cmd (or startWebLogic.sh):

-Xrunjdwp:transport=dt_socket,server=y,address=1044,suspend=n -Xdebug

Then, in Eclipse you have to use remote debugging indeed.
Add a new Remote Java Application in the Debug Configurations (via the menu: Run - Debug Configurations).
Make sure the correct project is selected (Browse button) and fill in localhost in Host and 1044 in Port. The other options you can leave unchanged.

If you click debug you should be able to see your remote WebLogic running in the Debug perspective.

If you see a WebLogic started under Servers, you are looking at an embedded server and not at the one you started via the command line. Make sure to stop any embedded server before starting via the command line as they will not be able to run on the same port together anyway.



来源:https://stackoverflow.com/questions/18875252/eclipse-weblogic-debugging

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!