Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where can I find the natvis schema definition (for creating VC++ debugger visualizers)?

Various online sources tell me I can find it @ %VSINSTALLDIR%\Xml\Schemas\natvis.xsd. But I have not been able to find it in the said path. I have checked multiple VS2010 and VS2012 installations. Can anyone paste the schema definition here? Any additional documentation would be awesome

like image 519
sreyas Avatar asked Oct 05 '22 22:10

sreyas


2 Answers

Hans Passant commented with the right answer, but it's not immediately obvious from his posting why you (or I) originally couldn't find it, which is:

The natvis XSD isn't found in \Schemas, but in \Schemas\1033.

You have to dig one level deeper to find it, because apparently Microsoft thinks it's code-page-localized or something. Anyway, here's where I located it in my copies of Visual Studio:

Visual Studio 2012:

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Xml\Schemas\1033\natvis.xsd

Visual Studio 2013:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Xml\Schemas\1033\natvis.xsd


Also, for what it's worth, the URL that Microsoft provides for the schema, http://schemas.microsoft.com/vstudio/debugger/natvis/2010, is a 3xx redirect as of this writing, so don't bother looking there.

like image 85
Sean Werkema Avatar answered Oct 25 '22 04:10

Sean Werkema


Visual Studio 2017:

C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Xml\Schemas\1033\natvis.xsd

like image 37
thakis Avatar answered Oct 25 '22 05:10

thakis