无法在Visual Studio Code上启动C#调试器

Joh*_*ith 5 c# debugging visual-studio-code

场景:
我正在尝试在Sabayon Linux下的Visual Studio Code上调试asp.net核心项目。当我按F5键时,我收到以下消息:

在命令面板中运行“调试:下载.NET Core调试器”或打开.NET项目目录以下载.NET Core调试器

打开命令面板并选择“调试:下载.NET Core调试器”不会执行任何操作。

软件版本:
Sabayon Linux 16.07
dotnet --version 1.0.0-preview2-003121 VSC 1.3的
Visual Studio Code 1.4.0
C#扩展

launch.json

{
"version": "0.2.0",
"configurations": [
    {
        "name": ".NET Core Launch (console)",
        "type": "coreclr",
        "request": "launch",
        "preLaunchTask": "build",
        "program": "${workspaceRoot}/bin/Debug/netcoreapp1.0/myproject.dll",
        "args": [],
        "cwd": "${workspaceRoot}",
        "stopAtEntry": false,
        "externalConsole": false
    },
    {
        "name": ".NET Core Launch (web)",
        "type": "coreclr",
        "request": "launch",
        "preLaunchTask": "build",
        "program": "${workspaceRoot}/bin/Debug/<target-framework>/<project-name.dll>",
        "args": [],
        "cwd": "${workspaceRoot}",
        "stopAtEntry": false,
        "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": "coreclr",
        "request": "attach",
        "processId": "${command.pickProcess}"
    }
]
Run Code Online (Sandbox Code Playgroud)

}

Har*_*mar 0

我在 Windows 操作系统上也遇到了同样类型的问题。如果您在安装调试器时遇到问题,请尝试以下操作:

  1. 单击左下角的设置图标打开用户设置文件
  2. 添加:"http.proxyStrictSSL": false,
  3. 添加:"http.proxy": "https://proxyuser:proxypassword@proxyip:proxyport"