Visual Studio 2015 diagnostics tool does not suppo

2019-01-14 19:48发布

问题:

After using VS2015 snapshot and profiling tools, I can't seem to get the diagnostics tools to work again. Every project, even new ones just say the following

The Diagnostic Tools window does not support the current debugging configuration.

Tried creating new and different type projects, running as administrator, deleting program data, app data, repairing and re-installing from uninstall.

Anyone experienced this?, shame as they've improved this tool a lot in this version.

Thanks

回答1:

So I resolved my issue. The Diagnostic Tools window currently does not support:

  • Windows Store projects that are using JavaScript
  • Windows Store projects that are running on a Windows Phone
  • Debugging with Use Managed or Native Compatibility Mode

In my case I had 'Use Managed Compatibility Mode' enabled. To change this go to the following and uncheck the 'Use Managed Compatibility Mode' or 'Use Managed Native Mode'.

Tools –> Options –> Debugging -> General -> (Un-check) 'Use Managed Compatibility Mode'



回答2:

I had the same problem but didn't have checked 'Use Managed Compatibility Mode' option. I had small research and seems like if start visual studio in Administrator mode, I'm able to use diagnostic tools. To start in Visual studio in Administrator mode just right-click on the studio icon and click on Run as administrator.



回答3:

For me it was PostSharp 4.3 (alpha) breaking the "Diagnostics Tools" window.



回答4:

Running Visual Studio as administrator fixed this for me.



回答5:

Thanks for the pointer! For me, it was the other way around, though. "Use Managed Compatibility Mode" was unchecked. Checking it got rid of the error and the debugger started working again.