使用Eclipse CDT / RSE / RDT远程调试C ++应用程序

编程入门 行业动态 更新时间:2024-10-09 14:27:47
本文介绍了使用Eclipse CDT / RSE / RDT远程调试C ++应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

$ b

我拥有Eclipse(在Windows中)以使其连接到我的Linux机器,并远程编译和调试C ++代码。工作:

  • 安装了CDT / RSE / RDT(Eclipse Juno,CDT 8.1.2,PTP(RDT)6.0.4 ,RSE 3.4)
  • rdt-server在Linux机器上运行( perl ./daemon.pl 4075 )
  • 创建本地C ++项目(基于Makefile)
  • 编译和调试本地C ++项目
  • 创建远程项目(使用Linux连接到rdt-server)
  • 编译远程项目(基于Makefile)

我可以做的事情(无需Eclipse):

  • remote调试我编译的项目: ssh mybox'cd /路径/到/项目; gdb main'
  • 启动gdbserver: ssh mybox'cd / path / to / project; gdbserver fqdn:10000 main'

什么不起作用:Eclipse中的调试

  • 通过C ++应用程序调试错误:程序未指定(因为我没有本地代码)
  • 通过C ++ remote进行调试错误:程序未指定(我是否需要本地代码?)
  • 通过C ++ attach调试(调试器:gdbserver)
    • 在linuxbox上运行的gdbserver
    • gdb无法与gdbserver交谈cygwin gdb 7.5,linux gdb / gdbserver 7.3);
    • 通过C ++ attach进行调试(调试器:gdb )会尝试附加到我的Windows进程中。

    其他可能导致问题的事情:

    • 我使用MSYS / Git提供的 ssh 二进制文件(不在 PATH
    • Cygwin不在 PATH中

    我真的想在Eclipse中为我的C ++项目进行远程调试。 您有任何建议如何从这里开始?

    解决方案

    您可以尝试这个插件与Eclipse的并行应用程序版本 这是一个链接

    它在从Windows机器发展到在Linux上开发程序的工作正常。

    I am fighting with Eclipse (in Windows) to make it connect to my Linux box and compile and debug C++ code there remotely.

    What I have working:

    • CDT/RSE/RDT installed (Eclipse Juno, CDT 8.1.2, PTP(RDT) 6.0.4, RSE 3.4)
    • rdt-server runs on Linux box (perl ./daemon.pl 4075)
    • create local C++ projects (Makefile based)
    • compile and debug local C++ projects
    • create remote projects (using the "Linux" connection to the rdt-server)
    • compile remote projects (Makefile based)

    Some manual things I can do (without Eclipse):

    • "remote" debug my compiled projects: ssh mybox 'cd /path/to/project; gdb main'
    • start a gdbserver: ssh mybox 'cd /path/to/project; gdbserver fqdn:10000 main'

    What is not working: Debug in Eclipse

    • debug via "C++ application" Error: Program not specified (because I have a no local code)
    • debug via "C++ remote" Error: Program not specified (do I need local code for that?)
    • debug via "C++ attach" (Debugger: "gdbserver")
      • gdbserver running on linuxbox
      • gdb can not talk to the gdbserver (cygwin gdb 7.5, linux gdb/gdbserver 7.3); warning: Architecture rejected target-supplied description.
    • debug via "C++ attach" (Debugger: "gdb") will try to attach to my Windows processes.

    Other things that might cause problems:

    • I am using the ssh binary provided with MSYS/Git (not on PATH)
    • Cygwin is not on PATH

    I really would like to do remote debugging in Eclipse for my C++ projects. Do you have any suggestions how to proceed from here?

    解决方案

    You can try this plugin with Eclipse, for parallel application version here is a link

    It works fine in the developing from Windows machine to program on Linux

更多推荐

使用Eclipse CDT / RSE / RDT远程调试C ++应用程序

本文发布于:2023-11-24 14:21:15,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1625565.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:应用程序   CDT   Eclipse   RDT   RSE

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!