情境:
我正在Sabayon Linux的Visual Studio Code上尝试调试asp.net核心项目。当我按下F5键时,会出现以下消息:
我正在Sabayon Linux的Visual Studio Code上尝试调试asp.net核心项目。当我按下F5键时,会出现以下消息:
在命令面板中运行“Debug: Download .NET Core Debugger”,或者打开.NET项目目录以下载.NET Core调试程序。
打开命令面板并选择“Debug: Download .NET Core Debugger”没有反应。
软件版本:
Sabayon linux 16.07
dotnet --version 1.0.0-preview2-003121
Visual Studio Code 1.4.0
Visual Studio Code的C#扩展名 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}"
}
]
}
coreclr-debug/install.log
文件为空。此外,在输出面板中没有coreclr-debug
选项。安装C#扩展会添加Omnisharp Log
选项,但没有coreclr-debug
。 - John Smith