joshbuhler.com

LogWatcher - trace() output in Eclipse

by Josh on Apr.12, 2007, under ActionScript, Flash

If you’re an obsessive trace() statement user like I am, and you happen to use Eclipse for your ActionScript coding, you’re going to love the LogWatcher plugin.

http://graysky.sourceforge.net/

If you have your Flash Player setup to log trace() statements and other errors to a text file, just point LogWatcher to the location of your Flash log text file. Even when testing from the Flash IDE, this text file will still be updated, and LogWatcher will pickup the changes. Essentially, you now have a duplicate of Flash’s Output Panel in Eclipse. You’ll no longer need to switch between Eclipse & Flash just to see what you happened to trace out when trying to debug something. I’m not sure how it works on Windows, but on OSX, if Flash isn’t in focus, then all of the panels disappear - meaning that you can’t look at your Output Panel and your code in Eclipse at the same time.

LogWatcher also includes the ability to set filters, to make it easier to find what you’re looking for. Need to find a single line in a sea of other trace output? Just create a filter, and let LogWatcher color that line red for you each time it appears.



:,
3 comments for this entry:
  1. bryce

    Does this mean that you have moved from xcode to eclipse as your editor of choice?

  2. josh

    yup. Eclipse & FDT: http://fdt.powerflasher.com/

    I love it. Though, once I can ditch AS2, and live in an AS3 & Flex world, it’ll be FlexBuilder.

  3. jonnymac blog » Debugging Flash and Flex in Eclipse - Arthropod and LogWatcher

    [...] second option I have come across is LogWatcher. I found this one on Josh Buhler’s blog a while back, but never got around to installing it. LogWatcher is a bit more integrated into [...]

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...