debug不会在codeblock中的断点处停止

时间:2014-06-05 16:36:30

标签: c++ debugging codeblocks

我正在使用codeblock来测试两个项目。在一个项目中,一切都是正确的,我可以运行和调试代码。但是在另一个项目中,我只能运行代码但无法调试。我设置断点并开始调试,但它不会在断点处停止。谁能告诉我这里可能有什么问题?

我搜索并找到了这个帖子Codeblocks "Error resetting breakpoint..." can't debug 我确保项目文件名中没有空格。

以下内容来自调试器

Starting debugger: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname  -quiet  -args D:/SOFTWA~1/C__~1/LEARNC~1/SELECT~1/bin/Debug/SELECT~1.EXE
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
(no debugging symbols found)
Debugger name and version: GNU gdb 6.8
Child process PID: 12992
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
Program exited normally.
Debugger finished with status 0

1 个答案:

答案 0 :(得分:0)

未找到调试符号,它告诉您在编译项目时应添加-g选项。