简体   繁体   English

Netbeans-7.4中的gdb用于C ++调试

[英]gdb in Netbeans-7.4 for C++ debugging

I'm trying to debug my project using the "step-into" function, but each of the debug options (other than Debug Project, Attach Debugger, and Debug Core File) is grayed out. 我正在尝试使用“逐步导入”功能调试项目,但是每个调试选项(“调试项目”,“附加调试器”和“调试核心文件”除外)均显示为灰色。 I've checked on both my Linux and Windows machines, and they both have the same problem. 我已经检查了我的Linux和Windows机器,它们都有相同的问题。

I'm running Netbeans 7.4 with gdb 7.6, seemingly properly loaded under tools->options->C++. 我正在使用gdb 7.6运行Netbeans 7.4,看似正确地在tools-> options-> C ++下加载。 Is there possibly a compatibility issue with newer versions of gdb? 较新版本的gdb是否可能存在兼容性问题? If so, how can I revert to an older version? 如果是这样,我该如何还原到旧版本?

Thanks! 谢谢!

Here are some things you can try: 您可以尝试以下操作:

  1. Remove all breakpoints of your project and try again with a new one 删除项目的所有断点,然后尝试新的断点
  2. (If possible) test version: (如果可能)测试版本:
    1. a earlier version of GDB GDB的早期版本
    2. and newer version of NetBeans (current stable: NB 7.4 SP2 -- testing: NB 8.0 RC1) 和更高版本的NetBeans(当前稳定版本:NB 7.4 SP2-测试:NB 8.0 RC1)
  3. Are there any error messages? 是否有任何错误消息? Please also keep an eye on NetBeans's logfile - on IDE start and debugging 还请注意NetBeans的日志文件-在IDE启动和调试时
  4. Check your paths, eg, to compiled binaries / libs 检查您的路径,例如,到编译的二进制文件/库

Maybe this Bug can help you: Bug 233683 - Gdb doesn't work with NetBeans 7.3.1 It's posted for 7.3, but maybe it's still in 7.4. 也许该错误可以为您提供帮助: 错误233683-Gdb无法与NetBeans 7.3.1一起使用。它的发布日期为7.3,但也许仍在7.4中。

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

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