Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

More line in console output of VS2010

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

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?

like image 274
lamwaiman1988 Avatar asked Apr 11 '11 17:04

lamwaiman1988


2 Answers

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).

Run your program again.

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.

like image 196
James McNellis Avatar answered Sep 29 '22 20:09

James McNellis


Console.BufferHeight = x;
Console.BufferWidth = x;

Sets the height and width of the console buffer.

like image 36
Bas Avatar answered Sep 29 '22 20:09

Bas