There’s been a lot of new debugging tools released lately that expand upon the somewhat dated Trace in Flash. I’ve tried many of them and they each have their advantages, but the one that I have settled on is LuminicBox.Log.
The site is in Spanish, but the documentation is in English.
LuminicBox.Log is easy to include in your code and just as easy to remove from your final distribution.
//import LuminicBox.Log classes
//create logger instance
var log = new Logger("myLogger");
//add TracePublisher if you want to log to the Output window
log.addPublisher( new TracePublisher() );
//add ConsolePublisher if you want to log to FlashInspector
log.addPublisher( new ConsolePublisher() );
//now we start calling the logger methods
It lets you log with different levels … Debug, Info, Warn, Error, and Fatal and can trace through objects.
LuminicBox.Log comes with a separate tool called FlashInspector that allows logs(traces) to be sent to its window through LocalConnection, which enables you to log comments outside of the Flash environment … this has been great for debugging many of my recent CDROMS.
You can download LuminicBox.Log here.
And I have created an exe from SWF Studio that allows FlashInspector to always be on top … you can download that here.