Hacking Firebug with Dojo
Written by on July 6th, 2007 in Ajax News.
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:
JAVASCRIPT:
-
-
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:
JAVASCRIPT:
-
-
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.
Source: Ajaxian
Original Article: http://feeds.feedburner.com/~r/ajaxian/~3/131002614/hacking-firebug-with-dojo