Home » c# » debugging – vscode debug c# application

debugging – vscode debug c# application

Posted by: admin February 21, 2020 Leave a comment


I created a simple “hello world” .net application using the following command:

dotnet new console -n testApplication

When i launch the application using the command:

dotnet run

everything is fine; if i try to debug the application using the .NET Core Launch (console) in VSCode i receive the alert: cannot find the debug adapter for type ‘coreclr’
c# extension is correctly installed.

Is there any additional setting to perform?

How to&Answers:

It seems, while installing the C# Extension for VSCode – need to get the Debugger for C#.
From the Visual Studio Code IDE – Side Menu/”Extensions(ctrl+shift+X)” download the OmniSharp packages to include the C# debugger or can Insall the same from the Link:: https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp