【问题标题】:.NET Core Debugging stopped working in Visual studio Code 1.9.NET Core 调试在 Visual Studio Code 1.9 中停止工作
【发布时间】:2017-02-06 17:24:33
【问题描述】:

我已更新到 Visual Studio Code 1.9,但突然无法调试我的 .NET Core 应用程序。如果我查看launch.json,它会说“类型:coreclr”不被接受。有谁知道有什么不同我需要改变什么?我把我的配置文件留在了下面。

提前致谢:-)

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": ".NET Core Launch (web)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            "program": "${workspaceRoot}\\bin\\Debug\\netcoreapp1.1\\BUnity.dll",
            "args": [],
            "cwd": "${workspaceRoot}",
            "stopAtEntry": false,
            "internalConsoleOptions": "openOnSessionStart",
            "launchBrowser": {
                "enabled": true,
                "args": "${auto-detect-url}",
                "windows": {
                    "command": "cmd.exe",
                    "args": "/C start ${auto-detect-url}"
                },
                "osx": {
                    "command": "open"
                },
                "linux": {
                    "command": "xdg-open"
                }
            },
            "env": {
                "ASPNETCORE_ENVIRONMENT": "Development"
            },
            "sourceFileMap": {
                "/Views": "${workspaceRoot}/Views"
            }
        },
        {
            "name": ".NET Core Attach",
            "type": "node",
            "request": "attach",
            "processId": "${command.pickProcess}"
        },
         {
            "name": ".NET Core Launch (console)",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            "program": "${workspaceRoot}\\bin\\Debug\\netcoreapp1.1\\BUnity.dll",
            "args": [],
            "cwd": "${workspaceRoot}",
            "stopAtEntry": false,
            "internalConsoleOptions": "openOnSessionStart",
            "env": {
                "ASPNETCORE_ENVIRONMENT": "Development"
            },
            "sourceFileMap": {
                "/Views": "${workspaceRoot}/Views"
            }
        }
    ]
}

【问题讨论】:

    标签: asp.net-core visual-studio-code


    【解决方案1】:

    不知何故,我卸载了 C# 扩展。需要调试 .NET Core 应用程序

    【讨论】:

      猜你喜欢
      • 2018-07-27
      • 2023-02-02
      • 2018-12-05
      • 2016-02-07
      • 2016-08-16
      • 2017-07-03
      • 1970-01-01
      • 2023-03-22
      • 2022-06-24
      相关资源
      最近更新 更多