116

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.

0xCursor
  • 2,242
  • 4
  • 15
  • 33
aherlambang
  • 14,290
  • 50
  • 150
  • 253
  • 2
    possible duplicate of [How do I increase the capacity of the Eclipse output console?](http://stackoverflow.com/questions/2828255/how-do-i-increase-the-capacity-of-the-eclipse-output-console) – Basilevs Nov 10 '14 at 14:12
  • 2
    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 Jan 09 '16 at 16:36

5 Answers5

197

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.

0xCursor
  • 2,242
  • 4
  • 15
  • 33
Mel
  • 2,086
  • 1
  • 12
  • 3
33

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.

Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
  • 9
    That said, I would strongly recommend setting a high limit rather than no limit at all. If you forget to clean your console, you can run Eclipse out of heap space, IIRC. – Matt Ball Apr 08 '10 at 14:27
  • 1
    In Eclipse Indigo, there is no Window -> Preferences. Right click on the text view of the console to bring up menu which has Preferences. – ski_squaw Dec 04 '13 at 21:19
15

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

loonix
  • 161
  • 1
  • 2
6

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

Fahim Faysal
  • 459
  • 4
  • 6
1

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