我有一个在远程服务器上运行的J2EE模块,我试图使用远程应用程序debuging配置从我的eclipse中调试它。
现在根据我读过的文章,我理解了以下几点
1)当我的代码部署在Weblogic服务器上时,我从命令提示符处给出一个cmd来启动我的模块,在该命令中我明确添加了调试选项。
set JAVA_OPTIONS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n %JAVA_OPTIONS%
2)现在在我的eclipse中,我用相同的端口8787和我的IP创建了一个调试conf,并为我的模块提供了所有源文件
现在我放了一个休息时间。在调试模式下运行我的eclipse,服务器上的应用程序已经运行。 我得到的只是weblogic内核默认线程,但不是我放置断点的那个。
framework [Remote Java Application]
Oracle JRockit(R)[10.203.139.61:8787]
Thread [Main Thread] (Running)
Daemon Thread [(Signal Handler)] (Running)
Daemon Thread [(OC Main Thread)] (Running)
Daemon Thread [(Code Generation Thread 1)] (Running)
Daemon Thread [(Code Optimization Thread 1)] (Running)
Daemon Thread [(VM Periodic Task)] (Running)
Daemon Thread [(Attach Listener)] (Running)
Daemon Thread [(Sensor Event Thread)] (Running)
Daemon Thread [VM JFR Buffer Thread] (Running)
Daemon Thread [Timer-0] (Running)
Daemon Thread [Timer-1] (Running)
Daemon Thread [[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] (Running)
Daemon Thread [JFR request timer] (Running)
Daemon Thread [weblogic.time.TimeEventGenerator] (Running)
Daemon Thread [JMAPI event thread] (Running)
Daemon Thread [weblogic.timers.TimerThread] (Running)
Daemon Thread [[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] (Running)
Daemon Thread [ExecuteThread: '0' for queue: 'weblogic.socket.Muxer'] (Running)
Daemon Thread [ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'] (Running)
Daemon Thread [ExecuteThread: '2' for queue: 'weblogic.socket.Muxer'] (Running)
Daemon Thread [ExecuteThread: '3' for queue: 'weblogic.socket.Muxer'] (Running)
Daemon Thread [VDE Transaction Processor Thread] (Running)
Daemon Thread [DoSManager] (Running)
Daemon Thread [Thread-12] (Running)
Daemon Thread [OracleTimeoutPollingThread] (Running)
Daemon Thread [[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] (Running)
Daemon Thread [[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'] (Running)
Daemon Thread [Dispatcher-Thread-13] (Running)
Daemon Thread [Dispatcher-Thread-14] (Running)
Daemon Thread [Thread-16] (Running)
Daemon Thread [Thread-17] (Running)
Daemon Thread [SnmpSession-Runnable] (Running)
Daemon Thread [TrapInformProcessor0] (Running)
Daemon Thread [ResponseProcessor0] (Running)
Daemon Thread [TimerProcessor0] (Running)
Daemon Thread [PollingProcessor0] (Running)
Daemon Thread [MasterAgentXServer: null:1705] (Running)
Daemon Thread [ClientNotifForwarder-1] (Running)
Daemon Thread [[ACTIVE] ExecuteThread: '4' for queue: 'weblogic.kernel.Default (self-tuning)'] (Running)
Daemon Thread [[ACTIVE] ExecuteThread: '5' for queue: 'weblogic.kernel.Default (self-tuning)'] (Running)
Daemon Thread [DynamicListenThread[Default]] (Running)
Daemon Thread [DynamicSSLListenThread[DefaultSecure]] (Running)
Daemon Thread [[ACTIVE] ExecuteThread: '6' for queue: 'weblogic.kernel.Default (self-tuning)'] (Running)
Daemon Thread [[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'] (Running)
Daemon Thread [[ACTIVE] ExecuteThread: '8' for queue: 'weblogic.kernel.Default (self-tuning)'] (Running)
Daemon Thread [[ACTIVE] ExecuteThread: '9' for queue: 'weblogic.kernel.Default (self-tuning)'] (Running)
Daemon Thread [[ACTIVE] ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] (Running)
我找不到线程出现在断点上的任何地方..而且没有以上
Drop To Frame
答案 0 :(得分:0)
经过一天...尝试我终于能够达到我的断点,是的,我必须设置“suspend = y”这有助于我将我的应用与eclipse同步。 此问题中显示的步骤是正确的,任何尝试相同的人都可以使用。
对我来说问题是我有多个模块,核心模块是断点有效的唯一模块,其他模块只是第三方代码。