Colour your trace output with FlashDevelop
This one surfaced on twitter today, and I thought it was so useful I’m blogging about it – for my own records as well as for the benefit of anyone else reading this.
When using FlashDevelop (and if on Windows, there’s really no reason to use anything else) you can colour the output of trace statements in the Results manager by using the following syntax:
1 2 3 4 5 |
trace("0:flash develop trace colour 0"); trace("1:flash develop trace colour 1"); trace("2:flash develop trace colour 2"); trace("3:flash develop trace colour 3"); trace("4:flash develop trace colour 4"); |
and it’ll look like this:
Obviously the important part is the number followed by the colon at the start of the trace.
Note that the above colours may be based on your FD colour settings. But it’s still superbly useful
Posted on January 5th 2011 at 3:17 pm by Rich.
View more posts in Software. Follow responses via the RSS 2.0 feed.
5 Responses
Leave a commentMake yourself heard
Hire Us
All about Photon Storm and our
HTML5 game development services
Recent Posts
OurGames
Filter our Content
- ActionScript3
- Art
- Cool Links
- Demoscene
- Flash Game Dev Tips
- Game Development
- Gaming
- Geek Shopping
- HTML5
- In the Media
- Phaser
- Phaser 3
- Projects
Brain Food
I didnt know this way of doing it.
I’m used to doing :
import org.flashdevelop.utils.FlashConnect;
(blablabla…)
FlashConnect.trace(“Output comment”, i) ;
where i is any int value between 0 and 4.
I have to admit I don’t bother using FlashConnect because I can trace directly to Firebug, so don’t need it. But that’s a nice tip to have added, cheers.
“Note that the above colours may be based on your FD colour settings”
Where might I find these? I’ve looked through the “Syntax Coloring” dialog and can’t seem to find where these are specified.
Any help would be greatly appreciated. Thanks!