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

问题描述 投票:0回答:1

我正在使用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
c++ debugging codeblocks
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.