Colored Traces in FlashDevelop

FlashDevelop does a lot of cool things that make coding much easier. For example ctrl+shift+1 does everything from automatic variable and function declarations to auto-importing classes. Anyway, I came across a cool little trick recently by accident:

I was trying to distinguish between two booleans I was tracing so I added prefixes to tell which was which in trace:
When my second trace statement came out golden, I was quite surprised!

So to add color, simply prepend your trace with “1:” or “2:” etc.

Here’s a quick list of possible colors:
0: Grey
1: Black
2: Gold
3: Red
4: Pink
5-9:Previous Color

A simple demonstration:

for (var i:int = 0; i < 6; i++)
	var str:String = i + ":";
        trace(str + "Color" + i);

Searching around the internet, I found this decent guide to some of the cool features. Be sure to glance at the comments of that article for more tricks.

Leave a Reply

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

You are commenting using your 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