[英]Visual Studio doesn't open command window for console application
I see a light blue bar in Visual Studio saying "Ready" when I debug or run my code, but the command window doesn't open.当我调试或运行我的代码时,我在 Visual Studio 中看到一个浅蓝色条,显示“就绪”,但命令窗口没有打开。 What should I do for the command window to appear?
我应该怎么做才能出现命令窗口?
Your application is probably finishes its job so fast, that you dont notice the command window.您的应用程序可能很快就完成了它的工作,以至于您没有注意到命令窗口。 Add
Console.ReadKey();
添加
Console.ReadKey();
at the end of your main function.在您的主要功能结束时。
That is assuming you actualy run an exe file.那是假设您实际上运行了一个 exe 文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.