Scenario :
我'm trying to debug asp.net core project on Visual Studio Code under Sabayon Linux. When I hit F5, I' m收到以下消息:
在命令选项板中运行'Debug:Download .NET Core Debugger'或打开.NET项目目录以下载.NET Core Debugger
打开Command Pallette并选择“Debug:Download .NET Core Debugger”什么都不做 .
Software versions:
Sabayon linux 16.07
dotnet --version 1.0.0-preview2-003121
Visual Studio Code 1.4.0
VSC 1.3的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}"
}
]
}
1 回答
我在Windows操作系统上也面临同样的问题 . 如果您在安装调试器时遇到问题,请尝试此操作:
单击左下角的设置图标打开用户设置文件
添加:
"http.proxyStrictSSL": false,
添加:
"http.proxy": "https://proxyuser:proxypassword@proxyip:proxyport"