How do I debug a remote application in my eclipse

前端 未结 1 1828
生来不讨喜
生来不讨喜 2021-01-18 09:59

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条回答
  •  时光说笑
    2021-01-18 10:28

    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 讨论(0)
提交回复
热议问题