代码块“错误重置断点...”无法调试 [英] Codeblocks "Error resetting breakpoint..." can't debug

查看:112
本文介绍了代码块“错误重置断点...”无法调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的第一篇文章,因此,如果位置错误,请随时将我引到其他地方。我对code :: blocks完全陌生,我遵循了此处使用minGW进行设置。除了一些预期的警告之外,它的构建还不错。但是,当我调试它时,会收到以下消息:

 设置断点调试器名称和版本:GNU gdb(GDB )7.4 
子进程PID:3928 [下级1(进程3928)以代码
退出[037777777777]调试器以状态0


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

 设置断点
调试器名称和版本:GNU gdb(GDB)7.4
子进程PID:3092
重置断点2时出错:函数 C:/ Users / Me / Documents / My Code / MyProgram /MyProgram/main.cpp:5未定义。
[下级1(过程3092)以代码037777777777退出]
调试器完成,状态为0

我已经搜索了,但是没有找到任何东西。此网站上唯一相关的帖子,
忽略范围的CodeBlocks断点
代码块调试
如何在代码块中调试?
根本没有帮助我。我已经两次重新安装了所有程序,但我不知道该怎么做才能使调试器正常工作。任何帮助将不胜感激。



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

解决方案

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



原因:
引用此链接:< a href = http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks#Path_with_spaces rel = nofollow> http://wiki.codeblocks.org/index.php?title=Debugging_with_Code :: Blocks#Path_with_spaces



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


This is my first post, so feel free to direct me elsewhere if this is in the wrong place. I'm totally new to code::blocks, and I followed the directions (twice) from here to set it up with minGW. Other than some expected warnings, it builds just fine. However, when I go to debug it, I get the following messages:

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

When I set a breakpoint, I get the following:

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

I have searched and searched, but I haven't found anything. The only relevant posts on this site, CodeBlocks Breakpoints Ignoring Scope codeblocks debugging How to debug in Codeblocks?, have not helped me at all. I've reinstalled everything twice and I have no idea what else to do to get this debugger working. Any help at all would be appreciated.

EDIT: I made "Hello World!" and it ran, but still could not be debugged. No idea what the problem is, especially since it detects gdb.

解决方案

This error occurs if there is a space in your build path (in your case "My Code"). Just rename that directory or move the project to a place where there are no spaces in your path.

Reason: Ref this link: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks#Path_with_spaces

You may have to clean and build your project again

这篇关于代码块“错误重置断点...”无法调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆