无法通过附加到 Chrome 64 位在 VS 2022 中进行调试

Cannot debug in VS 2022 by attaching to Chrome 64bit

我在最新的 Windows 10 下将 Chrome 32 位升级到 64 位,现在我的 VS2022 项目无法使用 Chrome 作为我选择的浏览器进行调试。他们 运行 在 Firefox(最新)甚至 MS Edge 下都很好。

我得到这个无法附加错误:

我的调试配置文件:

  "profiles": {
    "ShippingScheduler": {
      "commandName": "Project",
      "launchBrowser": true,
      "launchUrl": "",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      },
      "applicationUrl": "https://localhost:8822",
      "dotnetRunMessages": true
    },
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "launchUrl": "https://localhost:8822",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  }

我确实注意到 Chrome 64 位现在需要超过 15 秒才能打开,作为一个普通的浏览器。在 VS2022 下尝试 运行 它也很慢。

Chrome 安装程序 运行 在后台运行并花费了 20-30 分钟才完成,尽管我可以“运行”Chrome一个普通的浏览器。在几次重新启动并清除缓存后,Chrome 64 位 started-up 正常并且我能够将 VS 进程附加到它。