Eclipse远程调试预启动脚本? [英] Eclipse Remote Debug pre-launch script?

查看:142
本文介绍了Eclipse远程调试预启动脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 eclipse ,并能够远程调试我的应用程序。我选择使用仅限SSH连接选项,并注意到,因此,在我的远程系统资源管理器(RSE)中创建了一个新条目) eclipse 的问题。当我运行配置时,该工具会自动部署(sftp?)我的二进制文件到远程SSH目标 - 这部分功能很好。

I've created a "C/C++ Remote Application" debug configuration in eclipse and am able to debug my application remotely. I chose to use the "SSH Only" connection option and noticed, as a result, a new entry was created in my Remote System Explorer (RSE) in eclipse. When I run the configuration the tool automatically deploys (sftp?) my binary to the remote SSH target - this part works great.

是否可以设置配置部署其他文件到目标以及我的调试二进制文件使用相同的(sftp?)机制?

Is it possible to setup the configuration to deploy other files to the target along with my debug binary using the same (sftp?) mechanism?

我的应用程序在运行时打开文件,我希望他们出现在调试会话启动。我可以创建我自己单独的 ssh 脚本来复制它们在调试配置运行之前手动切换 - 但我希望有一个集成的解决方案,使用RSE中已经可用的连接条目。

My application opens files upon running and I'd like them to be present when the debug session starts. I can create my own separate ssh script to copy them over manually before the debug configuration is run - but I'd like to have an integrated solution that uses the connection entries that are already available in the RSE.

UPDATE1

我遇到过这个类似的问题,这也没有答案。

I've come across this similar question, which also has no answer.

推荐答案

我也在寻找解决方案,恐怕根本就没有一个直接的解决方案,但有一些你可以操纵完成你想要的

I was also looking for such as solution, I'm afraid there isn't a direct solution to what you want as far as I know, but there is something you can manipulate to accomplish what you want.

在C / C ++远程应用程序调试配置下,有一个命令在应用程序之前执行的框。在此文本框中,您可以编写一个SCP命令,将所需文件从主机复制到目标。由于在执行应用程序二进制文件之前执行命令,所以您应该拥有目标上的所有文件。

Under "C/C++ Remote Application" debug configuration there is a box for 'Command to execute before application'. In this text box you can write an SCP command to copy required files from host to target. As the command would be executed before executing application binary you should have all the files on your target.

使用SCP为此需要在系统中设置不需要身份验证的帐户。另一种选择是在您的主机和文本文件夹中托管FTP服务器应用程序前执行的命令使用FTP添加命令从主机到目标文件复制文件

Using SCP for this would need to setup an account in your system that does not need authentication. Another option is to host a FTP server on your host and in the text filed 'Command to execute before application' add a command to copy file from host to target using FTP

这篇关于Eclipse远程调试预启动脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆