2016-08-17 227 views
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}" 
    } 
] 

}

+0

請嘗試刪除〜/ .vscode/extensions/ms-vscode.csharp- 處的整個csharp擴展目錄,然後重新安裝擴展。要查看調試器安裝的狀態,您可以查看輸出面板(查看 - >切換輸出)並選擇coreclr-debug選項來查看任何消息 – BugFinder

+0

我做了這些步驟,不幸的是結果相同。 'coreclr-debug/install.log'是空的。另外,「輸出」面板中沒有'coreclr-debug'選項。安裝C#擴展添加了'Omnisharp Log'選項,但沒有'coreclr-debug'。 –

回答

0

我在Windows操作系統上也面臨同樣類型的問題。

  1. 打開用戶設置通過單擊底部的設置圖標文件離開
  2. 地址::"http.proxyStrictSSL": false,
  3. 地址: 如果你在安裝調試器有問題,請嘗試此"http.proxy": "https://proxyuser:[email protected]:proxyport"