Friday, July 6th, 2007

Hacking Firebug with Dojo

Category: Dojo, JavaScript, Library

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

  1. console.logIf( "api",       "The call was returned");
  2. console.logIf( “loading”,   “The FOO script loaded”);
  3. console.logIf( “verbose”,   “Additional info”, 0.9, “a”, ob);

And then turn on your profile:

javascript

  1. console.debugTypes = {
  2.     api:true,
  3.     loading:false,
  4.     verbose:true
  5. }

Now you can tweak your output in a simple manner, and you get the Firebug goodness all over.

Posted by Dion Almaer at 1:10 am
2 Comments

+++--
3.3 rating from 23 votes

2 Comments »

Comments feed TrackBack URI

very cool. didn’t know about this new interaction with Firebug… looks like an improvement that will yield some efficiency!

Comment by Mark Holton — July 6, 2007

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! :)

Comment by Jesse Kuhnert — July 6, 2007

Leave a comment

You must be logged in to post a comment.