简体   繁体   中英

Why can't I debug C# code in Visual Studio Code despite installing extensions?

I try to debug easy C# Hello World code, I followed the guide by Microsoft https://docs.microsoft.com/en-us/dotnet/core/tutorials/with-visual-studio-code . I can run code via Terminal dotnet run but I can't debug.

I got error

"You have any extension for debugging C#"

but I have "C# for Visual Studio Code (powered by OmniSharp)" and I additionally installed ".NET Extension Pack".

I read documentation form Microsoft and few other tutorials and i have any idea why it doesn't work. I send screenshot of error.

在此处输入图像描述

Go to Run > Add configuration... and select .NET Core Console App for debugging.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM