User forums > Using Code::Blocks

GDB problem

(1/2) > >>

Halan:
hi,

i try to debug my app. I set the checkmark in my debug-target for creating debugging symbols.

But i cant add watches and when hitting F8 no of my breakpoints are recongnized (always printing "(no debugging symbols)" )

greetings,
Halan

MortenMacFly:

--- Quote from: Halan on December 19, 2007, 05:29:42 am ---(always printing "(no debugging symbols)" )

--- End quote ---
That is the best hint you could get: Possible you have forgotten to enable the "-g" switch for the compiler to ensure debugging symbols are being created?!
In anyway - have a look at my sig for more information.
With regards, Morten.

Halan:
i followed your tutorial already before and have the check set

also it says

Debugger name and version: GNU gdb 6.6-debian

so it reconizes my debugger (im using ubuntu btw)
but still i cant add watches nor does it recognize my breakpoints.

i added a second target for debugging btw and selected it for compiling

greetings,
Halan

MortenMacFly:

--- Quote from: Halan on December 19, 2007, 11:40:52 pm ---but still i cant add watches nor does it recognize my breakpoints.

--- End quote ---
Did you set BP's in constructors, maybe?
I guess it's best if you compile a small example that demonstrates this and put it here in the forum for inspection. Don't forget to include the project file.
With regards, Morten.

Jenna:
If you create a console project with the wizard, it should be possible to set breakpoints at any line and to make gdb stop there.

Have you the "Debugger (debug)" tab visible in the log area ?

If not you can turn it on by checking "Display debugger's log" in "Settings -> Compiler and debugger settings -> Debugger settings".

Then you can see the commandline gdb is started with and the commands send to the gdb session by thge debugger plugin.
And of course gdb's answers.

This might help to find the cause for your problems.

Navigation

[0] Message Index

[#] Next page

Go to full version