Reputation: 415
I'm using VS Ultimate 2012 Update 5 :
... and try to use/install natvis to get user defined debugger variable vizualisations.
I did every hints provided in MSDN or StackOverflow (like creating EnableNatvisDiagnostics in registry, or advice in https://msdn.microsoft.com/fr-fr/library/jj620914%28v=vs.110%29.aspx)
Nothing works.
Any idea ? Regards. Alain aka BDW
Upvotes: 6
Views: 6719
Reputation: 2310
You can enable natvis debugging directly in Visual Studio in:
Tools -> Options -> Debugging -> Ouput Window -> Natvis diagnostic messages (C++ only)
It works in Visual Studio 2015 - 2019 (at least).
(Since Visual C++ 2015 EnableNatvisDiagnostics
registry setting is not used.)
Upvotes: 6
Reputation: 51
For me I had to turn off Use Native Compatibility Mode in the Debugger Options. None of these other suggestions worked up until that point. So my advice is experiment with these debugger options until the natvis works as there's no one-size-fits-all solution here.
Upvotes: 5
Reputation: 1872
I was experiencing similar problems in VS2015. Suddenly all of my visualisers stopped working.
With reference to this post: User defined natvis files in Visual Studio 2012 - in my case, "Show raw structure of data objects in variables window" was turned off. Checking it seemed to get VS to start loading the Natvis files again.
I also turned off "Use Managed Compatibility Mode" and "Use Native Compatibility Mode" for good measure, as I'd checked these options around the time that visualisers stopped working for me.
Upvotes: 3