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?
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.
Console.BufferHeight = x;
Console.BufferWidth = x;
Sets the height and width of the console buffer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With