Cannot start C # debugger in Visual Studio code

Scenario :
I am trying to debug the main asp.net project in Visual Studio Code under Sabayon Linux. When I press F5, I get the following message:

Run "Debug: Download .NET Core Debugger" in the command palette or open the .NET project directory to load the .NET Core Debugger

Opening the Pallette command and selecting "Debugging: Downloading .NET Core Debugger" does nothing.

Software Version:
Sabayon linux 16.07
dotnet --version 1.0.0-preview2-003121
Visual Studio Code 1.4.0
C # Extension for VSC 1.3

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}"
    }
]

}

+4
2

Windows. , :

  • ,
  • : "http.proxyStrictSSL": false,
  • : "http.proxy": "https://proxyuser:proxypassword@proxyip:proxyport"
0

BugFinder Visual Studio Debian 9:

  1. csharp ~/.vscode/extensions/ms-vscode. csharp-, #
  2. Ouput ("" → " ") "Razor Log"
  3. , ( "libunwind8", "sudo apt-get install libunwind8")
  4. Visual Studio
0

Source: https://habr.com/ru/post/1651504/


All Articles