无法在 Visual Studio 2019 中使用诊断工具

4 c++ debugging visual-studio

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

截屏

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

The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
Run Code Online (Sandbox Code Playgroud)

小智 6

显然,问题在于Visual Studio Standard Collector Service 150被禁用。重新启用后,这个问题就消失了。要重新启用该服务,我必须执行以下操作:

\n\n
    \n
  1. 打开服务\n\n
      \n
    1. \xe2\x8a\x9e+R
    2. \n
    3. 类型services.msc
    4. \n
    5. 点击OK
    6. \n
  2. \n
  3. 启用Visual Studio 标准收集器服务 150 \n\n
      \n
    1. 查找Visual Studio 标准收集器服务 150在服务列表中
    2. \n
    3. 右键单击其名称
    4. \n
    5. 点击Start
    6. \n
  4. \n
\n