开发者

Remote Debugging in eclipse

开发者 https://www.devze.com 2023-01-28 21:46 出处:网络
I have an application running in server A. The dev environment is in server B. I am trying to do remote debugging of app running in server A.

I have an application running in server A. The dev environment is in server B. I am trying to do remote debugging of app running in server A.

In server A i added following command to service start script

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_s开发者_如何学Pythonocket,address=4554,server=y,suspend=n

And service is running in server A.

When i try to launch remote debugging configuration it gives

Failed to connect to remote VM. Connection refused. Connection refused

port 4554 is free in server A.

What other configuration need to be done for this?

Regards Dheeraj Joshi


Try this.

  1. Set suspend=y, just to make sure you got the JVM line right. This should stop the VM on startup until you connect.
  2. If you're on Unix, bring up the terminal and try telnet [host] [port] - this will quickly let you know if there's anything listening to that port on that host.
  3. Make sure the connection properties in Eclipse are set correctly. Note that the port defaults to 8000.
  4. Use the IP address instead of the host name, to rule out DNS/hostfile problems.

Remote Debugging in eclipse

Another way of starting the JVM that I use successfully is:

-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=y


Check if there is a firewall between and/or on the two servers.

0

精彩评论

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