Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Currently I am using gcc-4.3.6 and Eclipse IDE for c++ development. I want to debug my project in Eclipse with gdb. I am having a hard time debugging code when it contains STL containers. Also I am not using STL directly, I have wrappers for each container.

I know we have to use pretty printing for looking into STL containers, but it is not working in Eclipse. I have worked in Visual Studio in the past. I migrated to gcc and Eclipse because compilation time in VS is too much wrt gcc. However, the debugger in VS is very good. I don't know much about gcc and Eclipse. I just want to know if there is a similar debugger in linux or unix.

share|improve this question
Think about asking this on stackoverflow – slybloty Jul 6 '12 at 13:39
This is technically on-topic here, since it's asking about a *nix tool; if you want it moved to SO, flag it – Michael Mrozek Jul 6 '12 at 13:54
I had to say, Microsoft's VS and compiler product is most advanced in the world, I don't see a single product in opensource world competitive with that. – warl0ck Sep 5 '12 at 1:03

the debugging features provided by gdb are based on the set of symbols that comes with your compiled code.

Actually there isn't a debug version available for the STL, but there are at least 2 portings that can add debug symbols to your code:



gdb without debugging symbols is useless, so you have to use a "debug version" for each library that you are using in your code if you want to test your code.

share|improve this answer

You might want to try KDevelop's or QtCreator's debugger. They interact with gdb's latest python support and support browsing thought STL containers as well as Qt's.

(Disclaimer: i haven't tried them much, gdb's support for remote debugging sucks too much for that)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.