在Eclipse CDT中为远程调试启动部署文件的正确方法是什么? [英] What is the right way to deploy files for a remote debug launch in Eclipse CDT?

查看:153
本文介绍了在Eclipse CDT中为远程调试启动部署文件的正确方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的情况:我目前正在尝试使用Eclipse CDT替代专有IDE.我有一个企业应用程序,它由一个可执行文件和很多(30多个)共享库模块组成.该应用程序针对具有POSIX兼容操作系统(QNX或GNU/Linux,取决于所选工具链)的嵌入式非x86平台.因此,无法在开发人员的计算机上进行调试.它必须远程完成.

My situation: I'm currently trying to use Eclipse CDT as a replacement for a proprietary IDE. I have an enterprise application, which consists of an executable and a lot (30+) of shared library modules. The application is targeted for an embedded non-x86 platform, with POSIX-compatible operating system (QNX or GNU/Linux, depending on the selected toolchain). Because of that, debugging can't be done on a developer's machine. It has to be done remotely.

我正在将Eclipse Luna/CDT 8.5与Remote System Explorer插件配合使用,并安装了GDB/DSF Create Process Launcher.通过这些插件,Eclipse可以远程启动程序并使用gdbserver对其进行调试.但是只能将主可执行文件配置为上载.

I'm using Eclipse Luna / CDT 8.5 with Remote System Explorer plugin and GDB/DSF Create Process Launcher installed. By means of those plugins Eclipse can launch a program remotely and debug it with gdbserver. But only the main executable can be configured for upload.

我想知道通过Eclipse进行远程调试启动时部署文件的合适方法是什么?

我当前的选择是:

  1. 使用远程系统资源管理器"透视图,将一些远程文件夹导入"为工作区中的远程项目".设置Makefile以在构建后将.so文件复制到映射的文件夹.生成后,手动刷新远程项目".然后,文件将被上传到远程系统.
  2. 使用Remote System Explorer透视图,将工作空间中的二进制文件导出"到远程文件系统,以便在远程启动时上载文件.此方法还要求我在启动调试会话之前先刷新"所有项目,否则将不会通知更改.
  3. 根本不使用Eclipse进行文件上传,而是手动或通过构建脚本进行部署.
  4. 采取艰苦的方法,向EclipseСDT贡献一些代码.

有更好的解决方案吗?

推荐答案

如何使用在远程应用程序调试启动中提交的在应用程序之前执行命令".

How about using 'Command to execute before application' filed in Remote Application debug launch.

在此主机系统上托管FTP服务器,并在目标服务器上具有FTP客户端.现在,在在应用程序之前执行的命令"中编写命令,以通过FTP将文件从主机复制到目标.由于此命令是在应用程序二进制文件之前执行的,因此在应用程序启动之前,应将文件放在目标计算机上. 另一个选择是您使用SSH而不是FTP,但是这将需要在主机上创建一个不要求身份验证的帐户,因为您将无法使用在应用程序之前执行的命令"来提供身份验证.

Host a FTP server on this host system and have an FTP client on target. Now write a command in 'Command to execute before application' to copy files from host to target via FTP. Since this command is executed before the application binary you would have the files on the target before application starts. Another option is you use SSH instead of FTP but that would require to create an account on your host that does not ask for authentication, because you would not be able to provide authentication using 'Command to execute before application'.

这篇关于在Eclipse CDT中为远程调试启动部署文件的正确方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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