Even Better Firebug

Posted by | Posted in Actionscript 3.0 | Posted on 03-06-2010

 
package
{
	import flash.external.ExternalInterface;
	public function bug(... args):void
	{
		ExternalInterface.call("console.log", args);
	}
}
 

Place that in a file called bug.as and drop it in your classpath, now you have a top level function called bug, that takes as many arguments as you want that even traces out objects and their contents. I'm convinced this is the easiest way to trace from the browser.