Debugging in Code :: Blocks not working - missing debugging symbols

I am trying to debug a program in Code :: Blocks. I followed this guide and this short video as I could, but the debugger does not stop at breakpoints ...

I saw a similar question that remained unresolved (I was not sure that I should hit it or open a new one with more details), I have the checkbox β€œProduce debugging characters [-g]” checked. Optimization and "Clear all characters [-s]" are also disabled. I even tried the -ggdb flag as suggested there , and failed.

I am using TDM-GCC 4.5.2 (I just updated, I had the same problem with 4.5.1 earlier) and the debugger is GNU gdb (GDB) 7.2 (the same problem with GDB 7.1 earlier). I am on Windows 7 x64 using Code :: Blocks SVN 7040 (this is the last nightly build, as far as I know, they recommend them for not frequently updated stable lines) (I had the same problem in SVN 6931).

Finally, I also noticed that the debugger complains about the lack of debugging symbols, here is 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 

thanks

+8
c ++ gcc debugging codeblocks debug-symbols
source share
1 answer

I don’t know if he decided and whether he decided, but I had the same problem, and just decided! I searched a lot and in the end the problem was ...

non-ASCII characters on the way to the project!

I had a few Hebrew letters on the way to the folder where my files are! I changed it to regular English letters and the debugger works!

Edit: just to make everything clear - all I did in the end was to change the folder name in the file system from Hebrew to English

+10
source share

All Articles