I would like to write visualizers for native C++ code.
Is there a way (simple or complex) to have more control (ex: custom
containers, reference to lookup tables...) over the watch window than with
the autoexp.dat file?
Thanks!
> I would like to write visualizers for native C++ code.
> Is there a way (simple or complex) to have more control (ex: custom
> containers, reference to lookup tables...) over the watch window than with
> the autoexp.dat file?
Have you taken a look at the EEAddIn sample?
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vcsample/html/v
csameeaddinsampledebuggingexpressionevaluatoradd-in.asp
You can build an external DLL and hook it up in autoExp.dat via the $ADDIN()
tag. I think all that built-in native VC++ visualizers do are contained in
autoExp.dat (whether it is sent out to external DLLs or not).
Eric Robert - 28 Jul 2006 14:32 GMT
> > I would like to write visualizers for native C++ code.
> > Is there a way (simple or complex) to have more control (ex: custom
[quoted text clipped - 8 lines]
> tag. I think all that built-in native VC++ visualizers do are contained in
> autoExp.dat (whether it is sent out to external DLLs or not).
Yeah, I already use that in some instances. The main problem is that it only
returns a string. I didn't find a way to add children items (like std::vector
for instance) with this method. The visualizer section of the autoexp.dat is
almost what I need if I could do just about the same in an external dll.