Reputation:
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?
Upvotes: 2
Views: 462
Reputation: 204886
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.
Upvotes: 3
Reputation: 55321
Here's some previous answers, for vectors and for maps - especially note the first answer in the maps question.
Upvotes: 2