views:

34

answers:

2

As I see, it's impossible to figure out what is in an STL map using NetBeans.

Is there any plugin/trick/solution that will allow me to print out all values from a map in debug mode?

As far as I know it's using GDB for debugging C++ applications. I've found some nice GDB macros for STL containers (here: http://sourceware.org/ml/gdb/2008-02/msg00064.html). Would it be possible to execute them from inside NetBeans?

+1  A: 

Try putting them into .gdbinit file in the directory where your source is (or your home directory) and see if GDB picks them up.

Nikolai N Fetissov
Yes, but the question is: how to use them in NetBeans?
ssobczak
A: 

The stl-views.gdb is quite old. GDB 7.x has a much better mechanism for inspecting STL containers.

Employed Russian
Can I connect it with NetBeans somehow?
ssobczak