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
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:
bin\omnisharp and .debugger folders under %userprofile%\.vscode\extensions\ms-vscode.csharp-1.11.0\runtimeDependencies section of this packages.json, download the zip files for OmniSharp (.NET 4.6 / x64) and for .NET Core Debugger (Windows / x64)omnisharp-win-x64-<version>.zip into %userprofile%\.vscode\extensions\ms-vscode.csharp-1.11.0\bin\omnisharp\coreclr-debug-win7-x64.zip into %userprofile%\.vscode\extensions\ms-vscode.csharp-1.11.0\.debugger\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-
.vscode\extensions\ms-vscode.csharp-
@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:
.debugger and .omnisharp directories under %userprofile%\.vscode\extensions\ms-vscode.csharp-1.13.1\omnisharp-win-x64-1.26.3.zip into .omnisharpcoreclr-debug-win7-x64.zip into .debuggerYou 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.
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
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.prefixingbin) 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:
bin\omnisharpand.debuggerfolders under%userprofile%\.vscode\extensions\ms-vscode.csharp-1.11.0\runtimeDependenciessection of this packages.json, download the zip files forOmniSharp (.NET 4.6 / x64)and for.NET Core Debugger (Windows / x64)omnisharp-win-x64-<version>.zipinto%userprofile%\.vscode\extensions\ms-vscode.csharp-1.11.0\bin\omnisharp\coreclr-debug-win7-x64.zipinto%userprofile%\.vscode\extensions\ms-vscode.csharp-1.11.0\.debugger\I hope the info help. :)