我知道這是一個非常普遍的問題,但我嘗試了很多東西,我沒有人給我一個解決方案。我在C++中使用C :: B編寫程序,但無法調試。我在我的項目的「Build Options」中的「-g」選項中打勾。我有「gdb.exe」作爲調試器。但結果如下:我無法在Code :: Blocks中調試
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Release
Adding source dir: I:\Juego para practicar\
Adding source dir: I:\Juego para practicar\
Adding file: bin\Release\Juego para practicar.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
**(no debugging symbols found)...(gdb)**
Debugger name and version: GNU gdb 5.2.1
No symbol table is loaded. Use the "file" command.
Program exited with code 030000000472.
Debugger finished with status 0
我該怎麼辦?我證明了一切,但它仍然沒有調試。
你能舉一個例子代碼嗎? –
**(找不到調試符號)...(gdb)** - 調試信息不存在於您的exe文件中 –