gpt4 book ai didi

java - 使用 Eclipse 进行远程调试

转载 作者:行者123 更新时间:2023-12-02 06:21:48 24 4
gpt4 key购买 nike

我想使用 Eclipse 调试在远程服务器上运行的 java 应用程序。我知道在 eclipse 中有创建远程调试配置的选项:Debug Configurations -> Remote Java Application

但我的问题是我应该在“主机”字段中输入什么内容。我没有与服务器直接连接,而是通过联系服务器。例如我有联系服务器:abc@contact.xyz.com ,我登录到联系服务器,然后使用以下命令登录到我的服务器: ssh server1 ,所以我的应用程序正在 server1 上运行。我无法直接访问 server1,只能在登录联系服务器后才能访问。

那么在我的情况下,我应该在“主机”字段中填写什么?

最佳答案

尝试使用端口转发,例如如果您有 Windows 计算机,则使用 putty: http://www.cs.uu.nl/technical/services/ssh/putty/puttyfw.html

对于 mac 试试这个(我自己没有尝试过,因为我没有 mac ;-)) http://blog.evandavey.com/2008/05/how-to-ssh-port-forwarding-on-mac-osx.html

关于java - 使用 Eclipse 进行远程调试,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20952699/

24 4 0
文章推荐: java - 在某些
文章推荐: java - java中的函数
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com