VS2010的控制台输出中有更多行 [英] More line in console output of VS2010

查看:255
本文介绍了VS2010的控制台输出中有更多行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在VS2010中运行程序时, 因为我的输出很多,所以控制台只会丢弃我以前的输出.

When I run my program in VS2010, because my output quite a lot,the console just discards my previous output.

例如,假设我的输出为400行,则不显示第1至80行,仅显示第81至400行.

For example, consider my output to be of 400 lines, lines 1 to 80 are not displayed, only lines 81 to 400 are displayed.

关于如何查看整个输出的任何想法吗?

Any idea of how I can see the entire output?

推荐答案

您可以更改控制台的缓冲设置:右键单击控制台窗口的标题栏,然后选择属性".在布局"选项卡上,将屏幕缓冲区的高度"更改为较大的数字(例如9999).

You can change the buffering settings of the console: right click the title bar of the console window and select "Properties." On the "Layout" tab, change the "Height" of the Screen Buffer to some large number (9999, for example).

再次运行程序.

当然,如果您需要定期检查大量输出,则最好将其写入文件.

Of course, if you have a large amount of output that you need to inspect on a regular basis, it's probably best to write to a file instead.

这篇关于VS2010的控制台输出中有更多行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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