Rich Waters

Ext, Javascript, Notes/Domino, Ext.nd, Ruby on Rails

I’ve found myself basically living in Firebug lately, and getting used to using console.log and console.dir a whole bunch. Problem is that I\’m not running firebug lite so I don’t have any IE equivalent. Tossing this script in real quick has helped out a lot.

Ext.onReady(function(){
try {
console.log(’bleh’);
} catch (e) {
console = { log: Ext.log };
}
});

As long as you’re using ext-all-debug, you have access to Ext.log and this gives you a decent IE alternative.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • BleedYellow
  • del.icio.us
  • Technorati
  • Reddit
U Comment, I Follow - Heavily moderated, SPAM will be dealt with.

4 Responses to “Quick Ext IE Tip”

  1. Have you tried CompanionJS? (http://www.my-debugbar.com/wiki/CompanionJS/HomePage) I’ve been using it for awhile now to catch those Firebug-only console calls (when it works!).

    mdmadph

  2. I have not, looks promising though, I will definitely check it out.

    Rich Waters

  3. After testing CompanionJS briefly I wasn’t very impressed. Performance wasn’t great and it couldn’t handle with anything beyond a string or number being sent to console.log. Hopefully between the official offering built-in with IE8 and the different plugin options, we’ll have something useful soon.

    Rich Waters

  4. Aye — to tell you the truth, I stopped using it as well. I never tried logging anything more than strings or numbers to the the console in CompanionJS, but my problems was with it suddenly just _not working_ from time to time, without any reason being given at all.

    mdmadph

Leave a Reply