User forums > Using Code::Blocks
no debugging symbols found
lehe:
Hi,
I have a console application in CB. Yesterday I switch to compile my code with gcc and debug with gdb in terminal emulator. After that, I switched back to CB. Now no matter how I clean and rebuild with -g, I cannot actually debug, e.g., stop at breakpoints.
I got the info "Cleaned "\'absurdity_under_CodeBlocks - Release' Done" when clean, and it does not mention to clean other object files and Debug directory. The executable in Debug remain the previous one. When debug, I got "No symbol table is loaded. Use the 'file' command. (no debugging symbols found)". By google, this usually happens when -g is missing during compilation. However I do check Project->Build Options->Compiler Settings->Compiler Flags->Produce Debug Symbols(-g) for both myprojectname "absurdity_under_CodeBlocks" and "Debug" on the left panel in the Project Build Options dialog.
I am not sure my problem is related to me also building my project using gcc and debugging with gdb in terminal. However I did as such before and everything was fine then.
Thanks for your help!
lehe:
There is no executable generated under bin/Debug except bin/Release as build log says: "Linking console executable: bin/Release/absurdity_under_CodeBlocks". However I did choose both Release and Debug when creating the application.
The debugger log also says:
"Command-line: /usr/bin/gdb -nx -fullname -quiet -args bin/Release/absurdity_under_CodeBlocks
Working dir : /home/lehe/absurdity_under_CodeBlocks/"
Should "bin/Release/myapp" in the command-line be "bin/Debug/absurdity_under_CodeBlocks"?
Jenna:
Is the Output filename in the projects Properties (tab Build targets) set correctly for the debug target ?
lehe:
Yes, I think so.
For debug, bin/Debug/absurdity_under_CodeBlocks
For release, bin/Release/absurdity_under_CodeBlocks
MortenMacFly:
--- Quote from: lehe on February 19, 2009, 03:59:00 pm ---I do check Project->Build Options->Compiler Settings->Compiler Flags->Produce Debug Symbols(-g)
--- End quote ---
Just my 2 cents: This is OK, but if you have in addition the "-s" (strip symbols) linker switch the symbols are being removed again. This once happened to me...
Enable full compiler logging to verify... (see my sig...)
Navigation
[0] Message Index
[#] Next page
Go to full version