【问题标题】:How do I debug a remote application in my eclipse如何在我的 Eclipse 中调试远程应用程序
【发布时间】:2010-12-31 13:50:07
【问题描述】:

我在我的 Eclipse 之外运行我的服务器,现在我想调试它。那有可能吗? 如果是,我该怎么做。

【问题讨论】:

    标签: java eclipse remote-debugging


    【解决方案1】:

    1) 在远程 JVM 上指定此选项。

    -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
    

    请注意,现在调试服务器正在此远程主机和端口 5005 上运行。

    2) 在 Eclipse 中,在Run > Debug> Debug Configurations... > Remote Java Application 下创建并运行远程调试配置。

    【讨论】:

      猜你喜欢
      • 2013-11-21
      • 2012-08-04
      • 1970-01-01
      • 2014-08-13
      • 2015-06-05
      • 2012-01-26
      • 2020-03-10
      • 2015-08-01
      • 1970-01-01
      相关资源
      最近更新 更多