这是我的第一篇文章,所以如果发错地方,请随时指导我。我对 code::blocks 完全陌生,我按照这里的指示(两次)用 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。