5
我从eclipse外运行我的服务器,现在我想调试它。这有可能吗? 如果是,我该怎么做。我如何在我的eclipse中调试远程应用程序
我从eclipse外运行我的服务器,现在我想调试它。这有可能吗? 如果是,我该怎么做。我如何在我的eclipse中调试远程应用程序
1)在远程JVM上指定此选项。
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
注意,现在调试服务器在该远程主机和端口5005
2)在Eclipse中运行,创建和Run > Debug> Debug Configurations... > Remote Java Application下运行远程调试配置。