简体   繁体   English

Visual Studio Code- c# 中的调试未启动

[英]Visual Studio Code- Debugging in c# isn't Starting

I've installed VSC and the extension for c# (powered by OmniSharp).我已经安装了 VSC 和 c# 扩展(由 OmniSharp 提供支持)。 I click on "Start Debugging" and it asks me for my debugging environment, I click on .Net Core and then nothing happens.我单击“开始调试”,它询问我的调试环境,我单击 .Net Core,然后什么也没有发生。

Can someone help?有人可以帮忙吗?

Thanks!谢谢!

Save your file as a C# file and that should download an OmniSharp package and the .Net core debugger.将您的文件另存为 C# 文件,然后应该会下载 OmniSharp 包和 .Net 核心调试器。

Once you have all that you can then press F9 on the line you want and then youll be able to debug as you like一旦你有了所有的东西,你就可以在你想要的行上按 F9,然后你就可以随心所欲地调试了在此处输入图片说明

I had this same issue, and all I needed to do was restart VSCode to get it working again.我遇到了同样的问题,我需要做的就是重新启动 VSCode 以使其再次运行。 I think that OmniSharp was having some issues and restarting VSCode allows it to get back up and running again.我认为 OmniSharp 遇到了一些问题,重新启动 VSCode 可以让它重新启动并运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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