1

I know this is a very common problem, but I tried a lot of stuff, I no one give me a solution. I have a program in C++ with C::B, and I cannot debug. I have the tick in the "-g" option at the "Build Options" in my project. And I have the "gdb.exe" as debugger. But the result is this:

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

What can I do? I proved everything, but it remains with no debugging.

2
  • can you give an example code ? Commented May 14, 2012 at 1:17
  • 1
    (no debugging symbols found)...(gdb) - debug informations are not there in your exe Commented May 14, 2012 at 1:18

2 Answers 2

1

".. Selecting target: Release .."

You are in release build, try to rebuild in debug

Sign up to request clarification or add additional context in comments.

1 Comment

Could you please elaborate more your answer adding a little more description about the solution you provide?
0

Paste your buildlog showing us that you are getting the correct compiler flags. For example, you should have -g for producing symbols.. You shouldn't have -s (strip) which removes all symbols not needed for relocations, etc.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.