【发布时间】:2010-12-31 13:50:07
【问题描述】:
我在我的 Eclipse 之外运行我的服务器,现在我想调试它。那有可能吗? 如果是,我该怎么做。
【问题讨论】:
标签: java eclipse remote-debugging
我在我的 Eclipse 之外运行我的服务器,现在我想调试它。那有可能吗? 如果是,我该怎么做。
【问题讨论】:
标签: java eclipse remote-debugging
1) 在远程 JVM 上指定此选项。
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
请注意,现在调试服务器正在此远程主机和端口 5005 上运行。
2) 在 Eclipse 中,在Run > Debug> Debug Configurations... > Remote Java Application 下创建并运行远程调试配置。
【讨论】: