Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio & Natvis not working

I'm using VS Ultimate 2012 Update 5 :

  • Microsoft Visual Studio Ultimate 2012
  • Version 11.0.61219.00 Update 5
  • Microsoft .NET Framework
  • Version 4.5.50938

... 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

like image 837
BartmanDilaw Avatar asked Mar 22 '16 08:03

BartmanDilaw


People also ask

What is Visual Studio used for?

The Visual Studio IDE is a creative launching pad that you can use to edit, debug, and build code, and then publish an app.

Is Visual Studio for free?

Visual Studio Community. A fully-featured, extensible, free IDE for creating modern applications for Android, iOS, Windows, as well as web applications and cloud services.

Is Visual Studio 2022 free?

Visual Studio Community 2022A free, fully featured, and extensible solution for individual developers to create applications for Android, iOS, Windows, and the web.

Is Visual Studio editor or IDE?

Visual Studio: IDE and Code Editor for Software Developers and Teams.


2 Answers

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.

like image 177
Rob Baker Avatar answered Oct 30 '22 09:10

Rob Baker


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.

like image 38
Coder_Dan Avatar answered Oct 30 '22 08:10

Coder_Dan