Core: C# Extension failed to install the debugger package

Created on 24 Jul 2017  路  14Comments  路  Source: dotnet/core

C# Extension failed to install the debugger package

Hi All,
I am trying to Debug .NET core C# code in VS code But getting the below Error.
I have already installed c# Extensions for VS code. But I am able to build and run from command window (dotnet run ).

C# Extension failed to install the debugger package

Kindly suggest.

Thanks.

Regards,
Guruprasad

Most helpful comment

@GuruprasadYellappaK I used the steps in this link to help point me in the right direction. After some tinkering, I got everything to work (both OmniSharp's integration with VSCode as well as the dotnet core debugger). The only thing odd was I had to put the files in the bin\omnisharp\ folder, not the .bin\omnisharp\ (note the . prefixing bin) as the link above suggested.

I'm running Windows 10 64bit and .Net Core SDK/CLI v1.0.4 with VSCode v1.14.2. Here are the steps:

  1. Install OmniSharp in VSCode and then close VSCode
  2. If it does not already exist, create bin\omnisharp and .debugger folders under %userprofile%\.vscode\extensions\ms-vscode.csharp-1.11.0\
  3. In the runtimeDependencies section of this packages.json, download the zip files for OmniSharp (.NET 4.6 / x64) and for .NET Core Debugger (Windows / x64)
  4. Unzip omnisharp-win-x64-<version>.zip into %userprofile%\.vscode\extensions\ms-vscode.csharp-1.11.0\bin\omnisharp\
  5. Unzip coreclr-debug-win7-x64.zip into %userprofile%\.vscode\extensions\ms-vscode.csharp-1.11.0\.debugger\
  6. Launch VSCode and run thru a simple Hello World dotnet core example... everything should work.

I hope the info help. :)

All 14 comments

I have Reinstalled the C# Extension and after having the below Error. Please help.

Updating C# dependencies...
Platform: win32, x86_64

Downloading package 'OmniSharp (.NET 4.6 / x64)' Retrying from 'https://omnisharpdownload.blob.core.windows.net/ext/omnisharp-win-x64-1.21.0.zip' Downloading package '.NET Core Debugger (Windows / x64)' Retrying from 'https://vsdebugger.blob.core.windows.net/coreclr-debug-1-10-1/coreclr-debug-win7-x64.zip'
Installing package 'OmniSharp (.NET 4.6 / x64)'
Failed at stage: installPackages
Error: end of central directory record signature not found

@GuruprasadYellappaK I used the steps in this link to help point me in the right direction. After some tinkering, I got everything to work (both OmniSharp's integration with VSCode as well as the dotnet core debugger). The only thing odd was I had to put the files in the bin\omnisharp\ folder, not the .bin\omnisharp\ (note the . prefixing bin) as the link above suggested.

I'm running Windows 10 64bit and .Net Core SDK/CLI v1.0.4 with VSCode v1.14.2. Here are the steps:

  1. Install OmniSharp in VSCode and then close VSCode
  2. If it does not already exist, create bin\omnisharp and .debugger folders under %userprofile%\.vscode\extensions\ms-vscode.csharp-1.11.0\
  3. In the runtimeDependencies section of this packages.json, download the zip files for OmniSharp (.NET 4.6 / x64) and for .NET Core Debugger (Windows / x64)
  4. Unzip omnisharp-win-x64-<version>.zip into %userprofile%\.vscode\extensions\ms-vscode.csharp-1.11.0\bin\omnisharp\
  5. Unzip coreclr-debug-win7-x64.zip into %userprofile%\.vscode\extensions\ms-vscode.csharp-1.11.0\.debugger\
  6. Launch VSCode and run thru a simple Hello World dotnet core example... everything should work.

I hope the info help. :)

@aldass Great! This guide works for me. Thanks!

@aldass Thank you for the help.

I have downloaded and placed the same in the below folder. and when I am facing the below issue when I reopen the VS code,
.vscode\extensions\ms-vscode.csharp-1.11.0\debugger
.vscode\extensions\ms-vscode.csharp-1.11.0bin\omnisharp

Updating C# dependencies...
Platform: win32, x86_64

Skipping package 'OmniSharp (.NET 4.6 / x64)' (already downloaded).
Downloading package '.NET Core Debugger (Windows / x64)' Retrying from 'https://vsdebugger.blob.core.windows.net/coreclr-debug-1-10-1/coreclr-debug-win7-x64.zip'
Installing package '.NET Core Debugger (Windows / x64)'
Failed at stage: installPackages
Error: end of central directory record signature not found

Finished

Kindly suggest is there something I am missing.

Thanks in Advance.

Regards,
Guruprasad

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

D:\TECHNOLOGY\Coresample1>dotnet --info
.NET Command Line Tools (1.0.4)
Herewith I am adding the information.
Product Information:
Version: 1.0.4
Commit SHA-1 hash: af1e6684fd

Runtime Environment:
OS Name: Windows
OS Version: 6.1.7601
OS Platform: Windows
RID: win7-x64
Base Path: C:\Program Files\dotnet\sdk1.0.4

Hi,

Kindly suggest, I could't able to fix the debug issue.
Thanks in Advance.

Regards,
Guruprasad

@GuruprasadYellappaK The later versions have changed the .vscode\extensions\ms-vscode.csharp-bin\omnisharp to
.vscode\extensions\ms-vscode.csharp-.omnisharp. Create this directory, and extract the zip into here. This resolved the same issue for me.

@DustinCampbell @gregg-miskelly where should this issue be tracked?

Closing this issue here.

This works great, thanks.
I'm behind work proxy which just wont let VSCode get stuff.
So, I manually downloaded these:
Downloading package 'OmniSharp (.NET 4.6 / x64)' 'https://omnisharpdownload.blob.core.windows.net/ext/omnisharp-win-x64-1.21.0.zip'
package '.NET Core Debugger (Windows / x64)'
'https://vsdebugger.blob.core.windows.net/coreclr-debug-1-10-1/coreclr-debug-win7-x64.zip'

Then created
.omnisharp
.debugger

directories in %userprofile%.vscode\extensions\ms-vscode.csharp-1.12.2\

unzip each archive to relevant directory.

(Re)Start VSCode, and all works.

Thanks,
Sean.

I'm using OmniSharp 1.13.1 and this is how I fixed a similar issue on my machine:

I looked at the JS source code, which was responsible for setting up both the extensions

%userprofile%\.vscode\extensions\ms-vscode.csharp-1.13.1\out\src\coreclr-debug\install.js

%userprofile%\.vscode\extensions\ms-vscode.csharp-1.13.1\out\src\omnisharp\launcher.js

Once I knew where they expected extensions, all I had to do was:

  1. Download the .zip files it was complaining about
  2. Create .debugger and .omnisharp directories under %userprofile%\.vscode\extensions\ms-vscode.csharp-1.13.1\
  3. Unzip omnisharp-win-x64-1.26.3.zip into .omnisharp
  4. Unzip coreclr-debug-win7-x64.zip into .debugger

You can't create folder with [.] prefix from the Folder Explorer so you'll have to use

cd %userprofile%\.vscode\extensions\ms-vscode.csharp-1.13.1
mkdir .debugger
mkdir .omnisharp

For some reason OmniSharp or VS Code ignore my http.proxy settings and I don't know why... :-1:

@dmumladze Thanks. Your answer is the only works. Also found that http.proxy setting never works.

Because of the proxy thing.

Go to user settings in VS Code and put that in here
"http.proxy": "http://url:port"

for example:
//100.100.100.100:1010

of course your proxy from the Browser->Settings->Proxy->Lan

Was this page helpful?
0 / 5 - 0 ratings