【问题标题】:Visual Studio Console Debug PopupVisual Studio 控制台调试弹出窗口
【发布时间】:2020-11-09 06:16:15
【问题描述】:

我一直在运行 IdentityServer4 中的一些快速入门示例,发现当我运行一个网站(例如 IdentityServer)时...会出现一个带有消息的弹出窗口...我假设它是一个记录器窗口或控制台输出......但我已经四处寻找,不知道这是如何完成的。

有什么帮助吗?

【问题讨论】:

  • 这似乎是一个默认的控制台记录器
  • @pavel-anikhouski 知道如何打开或关闭它吗?

标签: visual-studio debugging logging .net-core


【解决方案1】:

所以...我很快做了一个名为 test 的项目作为示例...在 Properties/launchSettings.json...配置文件下有两个项目(IIS Express 和测试)...然后当我选择这个项目现在有,至少在 2019 年(也许我以前从未注意到它),一个新的组合框,我可以在 IIS Express 和测试之间进行选择......当我选择 IIS Express 时,它只显示浏览器......但是当我选择测试它显示浏览器和一个命令框,我相信控制台调试信息。

这可能被称为自托管,但不是 100% 确定。

{
  "$schema": "http://json.schemastore.org/launchsettings.json",
  "iisSettings": {
    "windowsAuthentication": false,
    "anonymousAuthentication": true,
    "iisExpress": {
      "applicationUrl": "http://localhost:52015",
      "sslPort": 44344
    }
  },
  "profiles": {
    "IIS Express": {
      "commandName": "IISExpress",
      "launchBrowser": true,
      "launchUrl": "weatherforecast",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    },
    "test": {
      "commandName": "Project",
      "launchBrowser": true,
      "launchUrl": "weatherforecast",
      "applicationUrl": "https://localhost:5001;http://localhost:5000",
      "environmentVariables": {
        "ASPNETCORE_ENVIRONMENT": "Development"
      }
    }
  }
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-04-09
    • 1970-01-01
    • 1970-01-01
    • 2017-11-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多