Home > Archive > VC STL > February 2005 > Container visualisation in VC8 debugger
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Container visualisation in VC8 debugger
|
|
|
| I've been trying out the Visual C++ 2005 Express beta, and I've been
checking out the new visualisation functionality present in the
debugger (though use of the [Visualizer] section in autoexp.dat).
Does any documentation exist on how to implement 'visualisers' for your
own types?
If not, then maybe there's someone who can help me with a final step
which I need to make it work with my own container types. I need to
make a cast based on the value_type of the container. However, I can't
work out how to get access to that type. Something along the lines of
this:
[Visualizer]
my_container_type<*>{
children
(
#array
(
expr : ((value_type*)&$c.data)[$i],
size : $c.size
)
)
}
The (value_type*) cast part is where I have the trouble. You just
can't 'get the value_type' like that, but that's exactly what I need,
or some way to get the type of the container being visualised so I can
get 'visualization_type::value_type' (not that using nested typedefs
ever worked in the VC debugger), or if I can somehow retrieve the first
template parameter...
The only other option would be to put an already-cast value_type*
inside the container for everything I want to inspect through a cast.
But that would be wasteful.
Has anyone got any ideas? Any help would be appreciated.
| |
| Carl Daniel [VC++ MVP] 2005-02-20, 4:05 am |
| Fuz wrote:
> I've been trying out the Visual C++ 2005 Express beta, and I've been
> checking out the new visualisation functionality present in the
> debugger (though use of the [Visualizer] section in autoexp.dat).
>
> Does any documentation exist on how to implement 'visualisers' for
> your own types?
I'd suggest posting this question in:
microsoft.private.whidbey.cplusplus.ide.
and/or:
microsoft.private.whidbey.debugger
See:
http://communities.microsoft.com/ne...ey&slcid=us
for information on the whidbey beta newsgroups.
-cd
| |
|
|
|
|
|