116
votes

In Eclipse, how do you adjust the maximum lines in the console window? My program outputs 2000 lines of numbers and Eclipse truncates it so therefore I am missing some numbers.

It says here:

http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jdt.doc.user/reference/preferences/run-debug/ref-console.htm

that it's under run/debug > console, but I don't see that option anywhere.

5
Have to post an answer due to reputation limit. I was running a program that prints out a lot of lines(think trillions) to make sure it was running. Setting the console limit to unlimited was actually slowing the program down as the console kept eating memory up. Just a heads up if you run into very large programs like that. - Stevenfowler16

5 Answers

195
votes

In Window > Preferences > Run/Debug > Console, there's a checkbox "Limit console output" and a text field for entering the buffer size of the console.

Have never changed those settings myself but sounds like this could be what you are looking for. I am using Eclipse 3.3.2.

33
votes

Right click on the console > Preferences > Console buffer size

If you don't want any limit, uncheck the "Limit console output" checkbox.

Mine is currently set to 800000, which is enough.

15
votes

I had a similar problem with my c++ build console. This is set in Preferences->C/C++->Build->Console

6
votes

Same thing I also forgot every time. Step 1: form toolbar click on 'window' then 'preference' step 2: go'run/Debug' form lift side of preference window and select 'console' step 3: In right side of windows increase the size of 'Console buffer size(characters)' step 4: click ok to exit [window -->preference -->run/Debug -->console -->Console buffer size(characters)] enter image description here

1
votes

Later versions of eclipse should have it under Eclipse > Preferences > Run/Debug > Console. Then uncheck the "Limit console output" box.