用代码::: Blocks调试似乎不起作用-缺少调试符号 [英] Debugging in Code::Blocks doesn't seem to work - missing debugging symbols

查看:91
本文介绍了用代码::: Blocks调试似乎不起作用-缺少调试符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Code :: Blocks中调试程序.我遵循了本指南

I'm trying to debug a program in Code::Blocks. I followed this guide and this short video as far as I could, but the debugger doesn't stop at breakpoints...

我看到了一个类似的问题,该问题仍未解决(我不确定是否应该碰它)或打开一个包含更多详细信息的新标签),我确实选中了生产调试符号[-g]"标志.优化和将所有符号[-s]剥掉"也都被禁用.我什至尝试了建议-ggdb 建议的标记,也没有成功.

I saw a similar question which remained unsolved (I wasn't sure if I should bump it or open a new one with more details), I do have the "Produce debugging symbols [-g]" flag checked. Optimizations and "Strip all symbols [-s]" are also all disabled. I even tried the flag -ggdb as suggested there, no success either.

我使用的是TDM-GCC 4.5.2(我刚刚升级,以前与4.5.1存在相同的问题),调试器是GNU gdb(GDB)7.2(以前与GDB 7.1相同).我在Windows 7 x64操作系统上,使用Code :: Blocks SVN 7040(这是最新的每晚版本,据我所知,他们在不经常更新的稳定版本中推荐它们)(我在SVN 6931中存在相同的问题).

I'm using TDM-GCC 4.5.2 (I just upgraded, previously I had the same issue with 4.5.1), and the debugger is GNU gdb (GDB) 7.2 (previously same issue with GDB 7.1). I'm on Windows 7 x64, using Code::Blocks SVN 7040 (that's the latest nightly build, as as far as I know they recommend them over the not often updated stable builds) (I had the same issue in SVN 6931).

最后,我还注意到调试器抱怨缺少调试符号,这是调试器窗口中的输出:

Finally, I also noticed that the debugger complains about the lack of debugging symbols, here's the output in the debugger window:

Build succeeded
Selecting target: 
Debug
Adding source dir: G:\[...]\IPCMB3\
Adding source dir: G:\[...]\IPCMB3\
Adding file: bin\Debug\IPCMB3.exe
Starting debugger: 
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Reading symbols from G:\[...]\IPCMB3/bin/Debug/IPCMB3.exe...(no debugging symbols found)...done.
Debugger name and version: GNU gdb (GDB) 7.2
Child process PID: 6044
Program exited normally.
Debugger finished with status 0

谢谢

推荐答案

我不知道您是否已经解决了这个问题,但是我遇到了同样的问题,只是解决了它!我到处搜索了很多,最终问题出在....

i dont know if u solved it already but i had the same problem and just solved it!! i have searched a lot all over and eventually the problem was....

项目路径上的非ASCII字符!!

我的文件所在的文件夹路径上有一些希伯来字母!我将其更改为常规的英文字母,调试器正常工作!

i had some hebrew letters on the folder path where my files are located !! i changed it to regular english letters and the debugger worked!!

为了明确起见-我最终要做的就是将文件系统中的文件夹名称从希伯来语更改为英语

just to make it clear - all i did eventually is to change the folder name in the file system from hebrew to english

这篇关于用代码::: Blocks调试似乎不起作用-缺少调试符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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