4
方案启动C#调试器:
我想在芭雍Linux的基于Visual Studio代码调试asp.net的核心工程。当我按下F5键,我得到了以下信息:无法在Visual Studio代码
运行“调试:下载.NET核心调试器”在命令面板或打开一个.NET项目目录下载.NET核心调试
打开命令Pallette并选择“Debug:Download .NET Core Debugger”不起作用。
软件版本:
芭雍Linux的16.07
DOTNET - 版本1.0.0-preview2-003121
Visual Studio代码1.4.0
C#扩展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}"
}
]
}
请尝试删除〜/ .vscode/extensions/ms-vscode.csharp-处的整个csharp扩展目录,然后重新安装扩展。要查看调试器安装的状态,您可以查看输出面板(查看 - >切换输出)并选择coreclr-debug选项来查看任何消息 –
BugFinder
我做了这些步骤,不幸的是结果相同。 'coreclr-debug/install.log'是空的。另外,“输出”面板中没有'coreclr-debug'选项。安装C#扩展添加了'Omnisharp Log'选项,但没有'coreclr-debug'。 –