Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Easiest way to Filter Eclipse Console Output text

I'm asking this in relation to Flex Builder, but it might apply to Eclipse in general.

Trace statements in Flex Builder get sent to an Eclipse Output Console. What is the easiest way to filter this text on the Eclipse side?

Specifically, I'd like to be able to filter (ignore) lines by patterns.

I came across Logback, but it seems like overkill for this scenario. Is there no way to script something like this Eclipse itself?

like image 911
darscan Avatar asked Mar 21 '09 14:03

darscan


People also ask

How do I get full console output 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.

How do I display output 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"

How do I copy the console output to a text file in Eclipse?

The first method is to tell Eclipse to save console output to a file. For that, go to Run → Debug Configurations on Eclipse menu. Then under Standard Input and Output section, click on checkbox next to File: , and choose the name of output file to use.

How do I set the console buffer size in Eclipse?

Under Window > Preferences , go to the Run/Debug > Console section, then you should see an option "Limit console output." You can uncheck this or change the number in the "Console buffer size (characters)" text box below.


2 Answers

Nothing specific to FlexBuilder. If you need such a functionality, you'd need to write an Eclipse plug-in.

Take a look at grep-console one to start off.

like image 110
dirkgently Avatar answered Oct 07 '22 05:10

dirkgently


Also GrepClipse may help. Also available on the Eclipse Martket.

like image 27
xmedeko Avatar answered Oct 07 '22 06:10

xmedeko