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:

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

And then turn on your profile:

JAVASCRIPT:

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

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

Leave a Reply

You must be logged in to post a comment.



Site Navigation

Warning: gmmktime() expects parameter 3 to be long, string given in /home/tipsclub/public_html/ajaxgirl/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35

Warning: gmmktime() expects parameter 3 to be long, string given in /home/tipsclub/public_html/ajaxgirl/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35

Warning: gmmktime() expects parameter 3 to be long, string given in /home/tipsclub/public_html/ajaxgirl/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35

Warning: gmmktime() expects parameter 3 to be long, string given in /home/tipsclub/public_html/ajaxgirl/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35

Warning: gmmktime() expects parameter 3 to be long, string given in /home/tipsclub/public_html/ajaxgirl/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35

Warning: gmmktime() expects parameter 3 to be long, string given in /home/tipsclub/public_html/ajaxgirl/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35

Warning: gmmktime() expects parameter 3 to be long, string given in /home/tipsclub/public_html/ajaxgirl/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35

Warning: gmmktime() expects parameter 3 to be long, string given in /home/tipsclub/public_html/ajaxgirl/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35

Warning: gmmktime() expects parameter 3 to be long, string given in /home/tipsclub/public_html/ajaxgirl/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35

Warning: gmmktime() expects parameter 3 to be long, string given in /home/tipsclub/public_html/ajaxgirl/wp-content/plugins/wp-autoblog/rss_utils.inc on line 35