Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Diagnostic is either disabled or is not supported by the current application

Tags:

with VS 2015 Enterprise i get always following message on a solution while debugging: XAML Visual Diagnostic is either disabled or is not supported by the current application

Tools - Options - Debugging - General:

  • Enable UI Debugging Tools for XAML is enabled
  • Preview selected elements in Live Visual Tree is enabled

I have tried:

  • VS Restart
  • Clean Solution / Rebuild
  • Fresh Checkout

Curious: If i start the solution without debugging and i attach the debugger to the process, it works ...

Update: If i select "Enable native code debugging" in project settings - debug, it works !

like image 757
Andreas-Lamp Avatar asked Sep 30 '15 06:09

Andreas-Lamp


People also ask

How do I enable live visual tree?

Windows: By default, it appears on the IDE's left. If you don't see it, use Debug > Windows > Live Visual Tree to show it. Mac: By default, it appears on the IDE's right. If you don't see it, use View > Debug Windows > Live Visual Tree to show it.

How do I show diagnostic tools in Visual Studio?

When you start debugging in Visual Studio by selecting Debug > Start Debugging, or pressing F5, the Diagnostic Tools window appears by default. To open it manually, select Debug > Windows > Show Diagnostic Tools. The Diagnostic Tools window shows information about events, process memory, and CPU usage.

How do I disable Debug mode in Visual Studio?

To end a debugging session in Microsoft Visual Studio, from the Debug menu, choose Stop Debugging.


2 Answers

I needed an additional debugging option to be disabled in order for the tools to work with my projects:

Tools - Options - Debugging - General:

  • Use Managed Compatibility Mode --> disabled
like image 195
franmon Avatar answered Sep 22 '22 17:09

franmon


I also faced this problem for some WPF projects that came to my pc from various sources. In my case the problem was in the project target framework - it was set to .NET Framework 3.5. The Live Visual Tree and the Live Property Explorer in VS 2015 do not work with .NET 3.5:

Inspect XAML properties while debugging
https://msdn.microsoft.com/en-us/library/mt270227.aspx

So I just changed the target framework to .NET Framework 4.0 in the project properties dialog (the Application tab) to make these 'live' tools work.

like image 35
TecMan Avatar answered Sep 21 '22 17:09

TecMan