Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to change limits of Console in Eclipse

📅 2010-Jan-20 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive

 

The Console is one of the windows that is typically placed at the bottom of Eclipse. It is used to display the build output when compiling files and it is also used to display the console output written out by your program.

There is a limit to the number of characters or lines that the Console will hold. If your build or output is more than this limit, then the characters or lines at the top of the Console are silently removed. This can be problematic since it is very common for build outputs to be very verbose or for your program to spew a lot of output to the standard output. Thankfully, these limits can be changed or increased easily.

To change or increase the limit on number of lines of build output for C/C++, go to: Settings > C/C++ > Build > Console. The entry we need to change here is Limit console output (number of lines). The default limit is a tiny 500 lines. Increase it to a larger number like 10000.

To change or increase the limit on buffer size for output from your program, go to: Windows > Preferences > Run/Debug > Console. The entry we need to change here is Console buffer size (characters). The default limit is a small 80000 characters. Change it to a larger number like 1000000.

Tried with: Eclipse 3.7.2 and Ubuntu 12.04