When I choose one of the built-in visualizers:
I can see the original expression being visualized:
How can I get this information from within my own custom visualizer?
I've looked through the API reference, without finding anything.
(If you haven't found an answer, please upvote the request to support this on Developer Community.)
Update
The linked Developer Community request has been closed for reasons.
To open the Registers window Enable address-level debugging, by selecting Enable address-level debugging in Tools (or Debug) > Options > Debugging.
Because you were interested in a hyperlink, I searched my email archive and found a mail from February 04, 2006 (well, this is bit more than 'a few years ago'):
My question was:
... I also would like to know how the Visualizers provided by VS2005 manage to display the expression (topmost textbox in the Visualizer form).
And the answer:
... The reason the string visualizers can display the original expression is that they are built into Visual Studio at a lower level than the Visualizers interface we provide. They are written in native code and work when debugging native code, while the visualizers architecture we provide is limited to managed code.
Sorry! Let me know if you have any more questions.
Scott Nonnenberg Program Manager Visual C# Team
This was on http://blogs.msdn.com/scottno/default.aspx but I think Scott is no longer a Microsoft employee and the posting won't be available online...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With