我拥有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):
什么不起作用: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 ++应用程序
发布评论