how to debug java web application in eclips with weblogic server

前端 未结 2 1775
囚心锁ツ
囚心锁ツ 2020-12-17 02:02

I have java application with Eclipse IDE and WebLogic 11g server. Is it possible to debug application remotely? if yes how?

2条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 02:35

    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.

提交回复
热议问题