使用cmd在Visual Studio中进行调试 [英] Debugging in Visual Studio using cmd

查看:373
本文介绍了使用cmd在Visual Studio中进行调试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨伙计们,



我见过很少的C#编程视频教程。在那里,我注意到他们没有使用Console.Readline()暂停控制台屏幕,应用程序正在通过命令提示符运行。我正在使用Visual Studio Express 2013,我怎么能这样做?我知道这不重要,请帮助我。



-Manuprasad M

Hi folks,

I have seen few video tutorials for C# programming. In that I noticed that they are not using Console.Readline() to pause the console screen and the application is running through Command prompt. I am using Visual Studio Express 2013, how I can do the same ?. I know this is not important anyway please help me on this.

-Manuprasad M

推荐答案

关注是不使用 Console.Read() Console.ReadLine() Console.ReadKey()查看控制台屏幕的方法。



1.而不是按 F5 键或在Visual Studio中单击开始,按 CTRL + F5 的。这将使输出窗口保持打开状态。

2.睡眠线程几秒钟。

Following are the ways you can view the console screen without using Console.Read(), Console.ReadLine() or Console.ReadKey().

1. Instead hitting F5 key or clicking Start in Visual Studio, press CTRL + F5. This will keep the output window open.
2. Sleep thread for few seconds.
System.Threading.Thread.Sleep(2000); //this will make the control to wait for 5 seconds





希望,它有帮助:)



Hope, it helps :)


这篇关于使用cmd在Visual Studio中进行调试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆