Essential Eclipse Plugins: Grep Console

This week I’ve been debugging a rather hairy problem, and one of the few tools at my disposal was to add debug logging to the code.

That’s where Grep Console–a tiny but mighty Eclipse plug-in– came to my rescue. Grep console allows several regular expressions to be defined in the Eclipse console, highlighting the matching lines for easy reading.

I defined an initial regular expression to narrow in on some specific logging output related to the problem. After running the offending program, I could quickly scroll to potential problems in the thousands of lines of logging. From this logging I created an additional regexp of a different color containing the pointer value of interest.   This reduced the time to parse huge amounts of logging in search of a specific pointer value.

The one feature I was wishing for was the ability to jump to the next selected regular expression.  Even without it, this plug-in does one thing and does it well.

Advertisements

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: