【问题标题】:Cannot use diagnostic tools in visual studio 2019无法在 Visual Studio 2019 中使用诊断工具
【发布时间】:2019-11-09 18:35:18
【问题描述】:

当我尝试在 Visual Studio 2019 中调试程序并使用“诊断工具”窗口时,出现以下错误:

这是来自诊断中心输出的消息:

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

【问题讨论】:

    标签: c++ visual-studio debugging


    【解决方案1】:

    显然,问题在于 Visual Studio 标准收集器服务 150 已禁用。重新启用后,这个问题就消失了。要重新启用该服务,我必须执行以下操作:

    1. 开放服务
      1. + R
      2. 输入services.msc
      3. 点击OK
    2. 启用 Visual Studio 标准收集器服务 150
      1. 在服务列表中找到Visual Studio Standard Collector Service 150
      2. 右键单击其名称
      3. 点击Start

    【讨论】:

    • 还有一个没有 150 的“Visual Studio 标准收集器服务”。我禁用了这个,只启用了 150 项。那行得通。
    猜你喜欢
    • 2017-01-07
    • 2017-08-04
    • 2021-08-04
    • 1970-01-01
    • 2023-01-11
    • 1970-01-01
    • 1970-01-01
    • 2018-09-12
    • 1970-01-01
    相关资源
    最近更新 更多