简体   繁体   English

Eclipse CDT远程调试(“附加到Applicaton”或“远程应用程序”)

[英]Eclipse CDT Remote Debugging (“Attach to Applicaton” or “Remote Application”)

I just created a Amazon EC2 due to limited ram size on my workstation. 由于工作站上的内存大小有限,我刚刚创建了Amazon EC2。 Thus I need to figure out how to conduct remote debugging on this remote instance. 因此,我需要弄清楚如何在此远程实例上进行远程调试。

First of all, I am not quite sure I understand the difference between "Attach to Applicaton" or "Remote Application" in debugging configuration tab. 首先,我不太确定我是否了解调试配置选项卡中“附加到Applicaton”或“远程应用程序”之间的区别。 From what I've learned, the first one is just using Eclipse as a front-end GUI to connect a remote gdbserver. 据我了解,第一个只是使用Eclipse作为前端GUI连接远程gdbserver。 But I have no idea what the second one means. 但是我不知道第二个是什么意思。

Right now I can connect to the gdbserver on my EC2. 现在,我可以连接到EC2上的gdbserver了。 However, gdbserver gives me a warning message 但是,gdbserver给我警告消息

Could not load vsyscall page because no executable was specified
try using the "file" command first.

I've already defined the executable as well as project in Eclipse's debugging page. 我已经在Eclipse的调试页面中定义了可执行文件和项目。 Is there anything I missed? 我有什么想念的吗?

I have done the same thing some time back and it was working absolutely fine and I have mentioned all the step in my blog. 不久前,我做过同样的事情,并且工作得非常好,我在博客中提到了所有步骤。 Check the link for detail description. 检查链接以获取详细描述。

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

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