我在 Eclipse 上调试 Java 应用程序很开心,但最近我在 Ubuntu 12.04 上使用 Eclipse CDT 开发 C/C++,它在调试时忽略断点!我尝试过两个版本的 Eclipse CDT,CDT 8.4.0 for Eclipse Luna ,但也不起作用。有人可以帮忙吗?
注意:我知道还有一些其他类似的问题,但我认为最好提出这个专门针对 Eclipse Luna 的 CDT 8.4.0 的问题。
最佳答案
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/