简体   繁体   English

使用Jumphost进行Eclipse远程调试

[英]Eclipse remote debugging using jumphost

I have the current setup to connect to a remote machine: 我具有当前设置以连接到远程计算机:

My local machine(running linux)-> ssh to jump host -> ssh to development machine with tomcat 我的本地机器(运行Linux)-> ssh跳转主机-> ssh到带有tomcat的开发机器

What would I need in order to remote debug from the eclipse in my local machine (ubuntu) to the development one. 为了从本地计算机(ubuntu)的eclipse远程调试到开发计算机,我需要什么。 I've researched the matter but found no clear answer yet and eclipse doesn't have configurations for this scenario. 我已经研究了此问题,但尚未找到明确的答案,并且eclipse没有针对此场景的配置。

Any help would be really appreciated :) 任何帮助将非常感激 :)

I just added this to the tomcat configuration and restarted: 我刚刚将此添加到tomcat配置并重新启动:

-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -Xdebug -Xrunjdwp:transport = dt_socket,地址= 8000,服务器= y,暂挂= n

Opened a tunnel like this from my machine: 从我的机器打开这样的隧道:

ssh myuseronjumphost@jumphostaddress -L 8000:developmentmachine:8000 ssh myuseronjumphost @ jumphostaddress -L 8000:developmentmachine:8000

The tomcat debug configuration was with Standard (Socket Attach), connection properties Host: localhost, Port:8000 tomcat调试配置使用标准(套接字连接),连接属性为主机:本地主机,端口:8000

That way it worked perfectly 这样就可以完美工作

I solved this a while ago but forgot about the question so I wanted to share in case anyone finds it useful. 我不久前解决了这个问题,但忘记了这个问题,因此我想分享一下,以防有人发现它有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM