c++ - 断点在适用于 Linux 的 Eclipse Luna 的 CDT 8.4.0 上不起作用

标签 c++ linux eclipse eclipse-cdt

我在 Eclipse 上调试 Java 应用程序很开心,但最近我在 Ubuntu 12.04 上使用 Eclipse CDT 开发 C/C++,它在调试时忽略断点!我尝试过两个版本的 Eclipse CDT,CDT 8.4.0 for Eclipse Luna ,但也不起作用。有人可以帮忙吗?

注意:我知道还有一些其他类似的问题,但我认为最好提出这个专门针对 Eclipse Luna 的 CDT 8.4.0 的问题。

enter image description here

最佳答案

eclipse-cdt 仅附带构建 C/C++ 应用程序所需的工具。它不随 gdb 一起提供。您需要单独安装

How do I use GDB in Eclipse for C/C++ Debugging?

从上面的链接中,这些是要遵循的步骤。

1. Go to Help > Install New Software.
2. Add the CDT repository http://download.eclipse.org/tools/cdt/releases/8.4 to the list of repositories.
3. Select the CDT Repository. Now you need to install the CDT plugin along with GDB support from the list of available plugins (Select the CDT Main Features as well as CDT GNU Toolchain Debug support).

我更新了 CDT 存储库路径以对应您的版本 (Luna)。

关于c++ - 断点在适用于 Linux 的 Eclipse Luna 的 CDT 8.4.0 上不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24638912/

相关文章:

c++ - 使用指向该结构的指针访问结构变量成员的地址

c++ - 命令行参数类似于 C++ 中的用户输入

linux - 比较Linux中的两个文件并仅在第二个文件中输出差异

java - Eclipse Helios 的自定义 Java 代码折叠

c++ - 带有 vector 的新运算符

c++ - 我的 for 循环使每个值成为最后一个值 (C++)

c - putwchar/getwchar 编码?

linux - 在 perl 中插入大量数据后,我的数组显示为空

eclipse - JAVA EE & Eclipse : I am getting java. lang.NoClassDefFoundError 即使我已经设置了构建路径

eclipse - 无法使用 gwt-maven-plugin 在 eclipse 中创建项目