简体   繁体   English

无法在 visual studio 2019 中使用诊断工具

[英]Cannot use diagnostic tools in visual studio 2019

When I try to debug my program and use the Diagnostic Tools window in Visual Studio 2019, I am presented with the following error:当我尝试调试我的程序并使用 Visual Studio 2019 中的“诊断工具”窗口时,出现以下错误:

截屏

This is the message from the Diagnostics Hub Output:这是来自诊断中心输出的消息:

The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

Apparently, the problem was that the Visual Studio Standard Collector Service 150 was disabled.显然,问题在于Visual Studio 标准收集器服务 150被禁用。 After re-enabling it, that problem has disappeared.重新启用后,这个问题就消失了。 To re-enable the service, I had to do the following:要重新启用该服务,我必须执行以下操作:

  1. Open Services开放服务
    1. Press + R + R
    2. Type services.msc键入services.msc
    3. Click OK点击OK
  2. Enable the Visual Studio Standard Collector Service 150启用Visual Studio 标准收集器服务 150
    1. Find the Visual Studio Standard Collector Service 150 in the service list在服务列表中找到Visual Studio Standard Collector Service 150
    2. Right-click on its name右键单击它的名称
    3. Click Start点击Start

You try remove Diagnostics package and reinstall it.您尝试删除 Diagnostics 包并重新安装它。 'Visual Studio Installer' > Modify > Individual components > uncheck ".net profiling tools, C++ profiling tools, Javascript diagnostics" => Modify. 'Visual Studio 安装程序' > 修改 > 单个组件 > 取消选中“.net 分析工具、C++ 分析工具、Javascript 诊断”=> 修改。 And 'check' again when it complete work with me当它完成与我的工作时再次“检查”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Visual Studio 2015诊断工具内存使用率和C ++调试 - Visual Studio 2015 Diagnostic Tools Memory Usage & C++ Debugging 为什么visual studio Diagnostic Tools显示出太多的内存使用量? - Why is visual studio Diagnostic Tools showing soo much memory usage? 尝试在 Visual Studio 2019 中使用调试工具会导致“源不可用”屏幕 - Attempting to use debug tools in Visual Studio 2019 results in "Source Not Available" screen Visual Studio 诊断工具在 CPU 使用情况下仅显示“[Native]”-“源信息不可用” - Visual Studio Diagnostic Tools show only "[Native]" under CPU Usage - "Source information is not available" Visual Studio 2017,诊断工具意外失败。 Output “Unzulässige 功能”(无效功能) - Visual Studio 2017, The diagnostic tools failed unexpectedly. Output “Unzulässige Funktion” (invalid function) 如何使用 Visual Studio 2019 面向 Windows 7? - How to use Visual Studio 2019 to target Windows 7? 诊断会话在Visual Studio上不起作用 - Diagnostic session doesn't works on Visual Studio Visual Studio 社区 2019 无法将 cpp 文件添加到项目 - Visual Studio community 2019 cannot add cpp files to project visual studio 2019 - C++ 无法打开源文件 - visual studio 2019 - C++ cannot open source file 无法在 Visual Studio 2019 中访问 GLFW/glfw3.h - Cannot access GLFW/glfw3.h in Visual Studio 2019
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM