Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the Eclipse console scroll lock button do?

Tags:

eclipse

Im pretty sure i know what its supposed to do, but enabling/disabling makes absolutely no difference in my eclipse setup (3.6).
New output still scrolls the console even if i am not positioned to show the last screen full.

Am I missing anything?

like image 368
mP. Avatar asked Feb 01 '11 12:02

mP.


People also ask

How do I open the full console in Eclipse?

It can be changed by going to Windows --> Preferences --> Run/Debug --> Console and then unchecking "Limit Console Output" which is ON by default. This works on STS any version too. This would help printing complete console output. For a Mac it is Eclipse > Preferences > Run/Debug > Console.

Why my console is not working in Eclipse?

Inside Eclipse -> Click on "Window" Select "Show View" Then select "Console" If you cannot see console in the list, select "Other" and then search for "console' in new dialog at top and select "Console"


1 Answers

It looks like bug 316981:

We have found an understandable but unexpected issue with the scroll lock feature, by exposing it via SSH to the following shell script:

#!/bin/sh
X=1
while true ; do
  X=`expr $X + 1`
  echo "Hello $X"
done

Running this script, the "scroll lock" feature does not work.
The problem with the test case is that new lines are printed so quickly, that the Terminal Widget's buffer runs over.

Fix:

Window > Preferences > Terminal : 
Set "Terminal Buffer" to 100000 lines

Now, scroll lock works as expected even with this case (until 100000 lines are reached).

like image 71
VonC Avatar answered Sep 25 '22 16:09

VonC