Visual Studio 2015 诊断工具不再有效 [英] Visual Studio 2015 diagnostic tools no longer working

查看:48
本文介绍了Visual Studio 2015 诊断工具不再有效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 7 SP1 64 位上运行 Visual Studio 2015 社区版更新 3,我用它来开发 C# 应用程序.

I have Visual Studio 2015 Community Edition Update 3 running on Windows 7 SP1 64 bit, which I use to develop C# applications.

我喜欢在调试过程中使用诊断工具尽早发现性能问题.但是,他们在上个月左右的某个时间停止为我工作(可能与安装 Update 3 相关,尽管我没有任何信息可以支持).我看到错误消息调试时 CPU 分析在此版本的 Windows 上不可用.要查看 CPU 使用情况详细信息,请在没有调试器的情况下运行 CPU 使用情况工具(调试 -> 性能分析器...)."

I love the diagnostic tools during debugging to spot performance problems early on. However, they stopped working for me sometime in the last month or so (possibly related to installing Update 3, although I have no information to back that up). I see the error message "CPU Profiling while debugging is not available on this version of Windows. To see CPU usage details, run the CPU Usage tool without the debugger (Debug -> Performance Profiler...)."

我尝试过但没有成功的事情:

Things I have tried without success:

  • 完全卸载并重新安装 VS.

  • Completely uninstalling and reinstalling VS.

对我的 VS 安装进行修复

Performing a repair on my VS installation

确保在调试选项中禁用使用 {Managed,Native} 兼容模式".

Ensuring "Use {Managed,Native} compatability mode" is disabled in debug options.

启用诊断中心日志信息,如这个问题.日志中没有出现我可以看到的错误消息.

Enabling the Diagnostics Hub logging info as described in this question. No error messages that I can see appear in the logs.

即使我创建了一个新的 WPF 项目,这种情况仍然会发生,所以我认为它没有任何特定于项目的原因.

This still happens even if I create a new WPF project, so I don't believe it has any project-specific cause.

还有什么我可以尝试的吗?很明显,他们以前可以工作,所以我不相信有关我的 Windows 版本不受支持的错误消息.

Are there any other things I can try? Obviously they were working before, so I don't believe the error message about my version of Windows being unsupported.

推荐答案

删除我的解决方案的 .suo(解决方案选项)文件修复了该问题.我对这个甚至影响新项目的错误的初步陈述似乎是错误的.不过,我确实在完成该测试后重新安装了 VS,因此可能会影响结果.

Deleting my solution's .suo (solution options) file fixed the issue. My initial statement of this bug affecting even new projects seems to be wrong. Although, I did do a complete reinstall of VS after doing that test, so it's possible that impacted the outcome.

这篇关于Visual Studio 2015 诊断工具不再有效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆