[英]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 .我尝试调试简单的 C# Hello World 代码,我按照 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.我可以通过终端 dotnet run 运行代码,但无法调试。
I got error我有错误
"You have any extension for debugging C#" “你有调试 C# 的任何扩展”
but I have "C# for Visual Studio Code (powered by OmniSharp)" and I additionally installed ".NET Extension Pack".但我有“C# for Visual Studio Code(由 OmniSharp 提供支持)”并且我还安装了“.NET Extension Pack”。
I read documentation form Microsoft and few other tutorials and i have any idea why it doesn't work.我阅读了 Microsoft 的文档和其他一些教程,我知道它为什么不起作用。 I send screenshot of error.我发送错误截图。
Go to Run
> Add configuration...
and select .NET Core Console App
for debugging. Go Run
> Add configuration...
和 select .NET Core Console App
进行调试。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.