Using Firebugs console.log in flash AS2 & AS3

To use the excellent features of the firebug plugin for Firefox when debugging in flash, simply put this class in your ClassPath.

This will allow you to log Objects (yes it will iterate deep objects) log data which is externally loaded such as server requests. Overall it just makes life that little bit simpler.

Usage:

var obj:Object = {hi:”Hello World”, {hi_again:”Hello again”}}
console.log(obj)
console.debug(obj)
console.warn(obj)
console.info(obj)
console.error(obj)
console.assert(exp) – tests that expression is TRUE
console.dir(obj) – print an objects properties like in the DOM view
console.dirxml(xml)
console.group(name)
console.endGroup(name)
console.time(name)
console.endTime(name)
console.profile(name)
console.endProfile()

Download console.as ( for AS2 )

Download console.as ( for AS3 )

thanks to whomevers code i’ve cannibalized to get these, sorry i lost your links.

2 Responses to “Using Firebugs console.log in flash AS2 & AS3”

  1. thelastonefinished» Blog Archive » Firebugs “console.log” in Actionscript Says:

    […] feature: http://blog.alegitimatebusiness.com/2007/11/07/using-firebugs-consolelog-in-flash-as2-as3/ […]

  2. Mathilda Olexa Says:

    As a Newbie, I am constantly searching online for articles in which can aid me. Thank you

Leave a Reply