PDA

View Full Version : GUI Flash Debugger



thesprucegoose
May 19th, 2009, 04:40 PM
I can't imagine that this would exist, but I thought I'd ask anyway...

Does a GUI Flasher Debugger exist that is comparable to FireBug is to HTML?
http://getfirebug.com/

I walked into a student Flash project that's 5 years old and I can't figure out anything that's going on.... :(

If this exists, it would be such a big help!

Thanks,

--thesprucegoose

.ral:cr
May 19th, 2009, 06:06 PM
you can redirect the traces to firebug or any other console with something like this:
it's part of the haxe firebug class.


static public function trace(v : *,inf : * = null) : void {
var type : String = (inf != null && inf.customParams != null?inf.customParams[0]:null);
if(type != "warn" && type != "info" && type != "debug" && type != "error") type = (inf == null?"error":"log");
var str : String = (inf == null?"":inf.fileName + ":" + inf.lineNumber + " : ");
try {
str += Std.string(v);
}
catch( e : * ){
str += "????";
}
str = str.split("\\").join("\\\\");
flash.external.ExternalInterface.call("console." + type,str);
}