Friday, July 6th, 2007
Hacking Firebug with Dojo
One of the subtle changes in Dojo 0.9 is that you won’t find your dojo.debug() friends. Instead, they have ported Firebug Lite and now you will be able to use the console.* goodness.
The article on this (over at SitePen) also discusses conditional logging and being able to:
- console.logIf( "api", "The call was returned");
- console.logIf( “loadingâ€, “The FOO script loadedâ€);
- console.logIf( “verboseâ€, “Additional infoâ€, 0.9, “aâ€, ob);
And then turn on your profile:
- console.debugTypes = {
- api:true,
- loading:false,
- verbose:true
- }
Now you can tweak your output in a simple manner, and you get the Firebug goodness all over.





very cool. didn’t know about this new interaction with Firebug… looks like an improvement that will yield some efficiency!
and they have firebug lite in there! Very very cool. Debugging abilities of libraries are often understated/unappreciated and this is just one of those kinds of features that we’ll all see the benefit from in every day dev work.
thanks! :)