![](/img/trans.png)
[英]unable to edit the c# code while debugging in visual studio 2019
[英]Unable to run C# in Visual Studio Code
問題是代碼運行並立即退出
您應該在 Main 方法的末尾添加Console.ReadKey()
,如下所示:
using System;
class Program
{
static void Main(string[] args)
{
// Your Code here
Console.ReadKey(); // At the end of the Main method
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.