Author Topic: Source level debugging (C++)  (Read 2022 times)

Offline johne53

  • Regular
  • ***
  • Posts: 253
Source level debugging (C++)
« 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++?
« Last Edit: July 04, 2007, 07:46:40 am by johne53 »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9606
Re: Source level debugging (C++)
« Reply #1 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.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ