【问题标题】:Codeblocks "Error resetting breakpoint..." can't debug代码块“重置断点错误...”无法调试
【发布时间】:2013-05-26 04:45:18
【问题描述】:

这是我的第一篇文章,如果发错地方,请随时指导我。我对 code::blocks 完全陌生,我按照here 的指示(两次)使用 minGW 进行设置。除了一些预期的警告外,它构建得很好。但是,当我去调试它时,我收到以下消息:

Setting breakpoints Debugger name and version: GNU gdb (GDB) 7.4 
Child process PID: 3928 [Inferior 1 (process 3928) exited with code
[037777777777] Debugger finished with status 0

当我设置断点时,我得到以下信息:

Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.4
Child process PID: 3092
Error in re-setting breakpoint 2: Function "C:/Users/Me/Documents/My Code/MyProgram/MyProgram/main.cpp:5" not defined.
[Inferior 1 (process 3092) exited with code 037777777777]
Debugger finished with status 0

我已经搜索和搜索,但我没有找到任何东西。本站唯一相关的帖子, CodeBlocks Breakpoints Ignoring Scope codeblocks debugging How to debug in Codeblocks?, 根本没有帮助我。我已经重新安装了所有东西两次,我不知道还有什么可以让这个调试器工作。任何帮助将不胜感激。

编辑:我制作了“Hello World!”它运行了,但仍然无法调试。不知道问题是什么,尤其是因为它检测到 gdb。

【问题讨论】:

    标签: debugging codeblocks


    【解决方案1】:

    如果您的构建路径中有空格(在您的情况下为“我的代码”),则会发生此错误。 只需重命名该目录或将项目移动到路径中没有空格的位置即可。

    原因: 参考此链接:http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks#Path_with_spaces

    您可能需要再次清理和构建您的项目

    【讨论】:

    • 与 cdb 有同样的问题 - 从路径中删除空间有帮助。很多:)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-09-23
    • 1970-01-01
    • 2018-08-28
    • 1970-01-01
    • 1970-01-01
    • 2017-07-11
    • 1970-01-01
    相关资源
    最近更新 更多