Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
2  
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
add comment

2 Answers

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:

http://www.stlport.org/

http://code.google.com/p/stl-debug/

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
add comment

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
add comment

Your Answer

 
discard

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.