Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux C++ Debugger

I'm looking for the perfect Linux C++ debugger. I don't expect success, but the search should be informative.

I am a quite capable gdb user but STL and Boost easily crush my debugging skills. It not that I can't get into the internals of a data structure, it's that it takes so long I usually find another way( "when in doubt, print it out" ).

The macro language for gdb is weird and not very adaptive. Just look at the code for the stanford gdb utils to print out stl structures.

In short I'm unhappy with what I've got.

I recently stumbled upon Zero Bugs. It looks like a silver bullet. What do the current Zero Bugs users think of it?

Has anyone found other good solutions to the Linux C++ Debugger problem?

like image 899
deft_code Avatar asked Jan 12 '09 18:01

deft_code


2 Answers

A development branch of gdb (part of gdb's Project Archer) adds Python support to gdb (to replace gdb's macros). There's a series of blog postings starting here that extensively covers getting started with Python-enabled gdb and offers several tutorials on using Python for defining new gdb commands and pretty printing of C++ data structures.

like image 110
Josh Kelley Avatar answered Oct 13 '22 10:10

Josh Kelley


UndoDB is amazing if you don't mind paying for it. The reversible capability is much much faster than GDB's. http://www.undo-software.com/

like image 36
tombritt Avatar answered Oct 13 '22 09:10

tombritt