Using the <CustomVisualizer> Tag with natvis
I am trying to use the tag that is defined in the natvis.xsd file (natvis schema file) to write C # or C ++ code to render the type. I can’t find the documentation on this, so I don’t know how this works. In particular, I need to specify a GUID for CustomVisualizer. What does this GUID apply to? How to export a class registered in this GUID? Which interface do I need to implement? In short, how do I link the GUID that I specified in the .natvis file to the code that formats the object?
the documentation for natvis does not mention the existence of the CustomVisualizer tag, but is in the natvis schema file and displayed in autocomplete. I found that PyTools seems to implement natvis custom visualizers using this method, but it seems that some code is hidden, and I cannot find the source for the actual native visualizer using this method.
Here is an example natvis file I would like to make:
<?xml version="1.0" encoding="utf-8" ?>
<AutoVisualizer xmlns="http://schemas.microsoft.com/vstudio/debugger/natvis/2010">
<Type Name="MyCustomVisualizer">
<CustomVisualizer VisualizerId="{387446F9-4B29-4EE7-A948-346BF6995603}"/>
</Type>
</AutoVisualizer>
And I specifically ask how to write C # and / or C ++ code to make this work.
https://code.msdn.microsoft.com/Writing-graphical-debugger-a17e3d75
UIVisualizer CustomVisualizer. CustomSisualizer , , . UIVisualizer , . GUID, UIVisualizer, .