Sasha
Sasha

Reputation:

What debugger tools do you use to look at contents of a STL container (on linux)

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

Answers (2)

ephemient
ephemient

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

John Carter
John Carter

Reputation: 55321

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

Upvotes: 2

Related Questions