【发布时间】:2025-11-30 04:40:01
【问题描述】:
我正在尝试调试 java 应用程序。我关注了this steps
错误:
Failed to connect to remote VM. Connection refused.
Connection refused: connect
程序:
package test;
public class test {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Got");
}
}
步骤:
Eclipse --> Run --> Debug Conf --> connect tab --> test is project name
--> host is localhost --> port is 8000 --> Socket Attach --> Apply -->
Debug under common tab --> apply
它向我显示了那个错误。然后我检查了以下内容
ping localhost - Works
telnet localhost 8000 - connection refused
netstat -tna | grep 8000 - no process is listening
我如何做到这一点?我还应该修改什么?或者还有其他方法可以实现吗?
主机:本地主机窗口
【问题讨论】:
标签: java eclipse remote-debugging