如何在我的eclipse中调试远程应用程序 [英] How do I debug a remote application in my eclipse
本文介绍了如何在我的eclipse中调试远程应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果是,我该怎么做。
解决方案
1)在远程JVM上指定此选项。
-agentlib:jdwp = transport = dt_socket,server = y,suspend = n,address = 5005
请注意,现在调试服务器正在此远程主机和端口5005上运行。
2)在Eclipse中,在运行>调试>调试配置下创建并运行远程调试配置... >远程Java应用程序。
I am running my server from outside of my eclipse and now i want to debug it. so is it possible ? If yes how can i do that.
解决方案
1) Specify this option on remote JVM.
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
Note that now the debug server is running at this remote host and port 5005.
2) In Eclipse, create and run remote debug config under Run > Debug> Debug Configurations... > Remote Java Application.
这篇关于如何在我的eclipse中调试远程应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文