开发者

How do I debug a remote application in my eclipse

开发者 https://www.devze.com 2022-12-15 09:34 出处:网络
I am running my serv开发者_高级运维er from outside of my eclipse and now i want to debug it. so is it possible ?

I am running my serv开发者_高级运维er 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消