How do I debug a remote application in my eclipse

こ雲淡風輕ζ 提交于 2019-12-19 18:48:42

问题


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:


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.



来源:https://stackoverflow.com/questions/1988039/how-do-i-debug-a-remote-application-in-my-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!