Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: johne53 on July 04, 2007, 07:44:27 am

Title: Source level debugging (C++)
Post by: johne53 on July 04, 2007, 07:44:27 am
Can anyone tell me if gdb is a "source level" debugger (i.e. can it be used with code blocks to set break points and single step through the code etc) ?

Some people are telling me that it can while others tell me it can't. I'm quite new to Linux programming and up until now, I've only used gdb from the command line to generate back traces etc. I did try something called DDD (which claimed to offer source level debugging) but it just didn't work. I could set break points easily enough - but the program never stopped at them....  :(

I'm not a new programmer BTW. I've been programming in C/C++ for about 15 years - but not under Linux.

If gdb isn't up to the job, can anyone suggest a source level debugger that I could use with both C::B and g++?
Title: Re: Source level debugging (C++)
Post by: MortenMacFly on July 04, 2007, 07:55:55 am
Can anyone tell me if gdb is a "source level" debugger (i.e. can it be used with code blocks to set break points and single step through the code etc) ?
Yes, gdb is what you call a "source level debugger". C::B supports gdb and supports stepping through the code step-by-step.
Notice that for Windows you should use any version of gdb >= 6.3.x.
With regards, Morten.