views:

161

answers:

2

I use gdb (actually DDD), and getting an element out of container is impossible. So I typically end up rolling my own loop for debugging purposes...

What do you do?

+2  A: 

Here's some previous answers, for vectors and for maps - especially note the first answer in the maps question.

therefromhere
+3  A: 

Qt Creator is capable of visualizing both Qt containers and STL containers.

There's ongoing work to get GDB to support pretty printing on its own. So far it hasn't made it into any official releases yet, but Fedora 11 shipped it already.

ephemient