Friday, June 6th, 2008

NitobiBug: Cross browser debugging

Category: Testing, Utility

Nitobi Bug

Nitobi has released a cross browser debugging script, NitobiBug:

It’s a browser-based JavaScript object logger and inspection tool – similar to Firebug. NitobiBug runs across different browsers (IE6+, Safari, Opera, Firefox) to provide a consistent and powerful tool for developing rich Ajax applications.

With it you can:

javascript

  1. // inspect an object
  2. var myObject = {a:234523, something:'else', mylist:[32423,4556,'sdfs']}; nitobi.Debug.log(myObject);
  3.  
  4. // inspect a DOM element
  5. var myDomObject = document.getElementById('someID'); nitobi.Debug.log(myDomObject);
  6.  
  7. // output text
  8. nitobi.Debug.log("This is a test");

The location of the window itself is remembered, and if you click on the “show me” link of a DOM debug window, you will see the element highlighted (if possible).

Posted by Dion Almaer at 6:02 am
9 Comments

+++--
3 rating from 36 votes

9 Comments »

Comments feed TrackBack URI

A real debugger allows for stepping through code and inspecting everything through the life of the code.

People should really stop calllng every single logger a ‘debugger’

Comment by urandom — June 6, 2008

I don’t think it’s unfair to call this a debugger at all. it’s a close as you’re gonna get to real debugging in a lot of browsers, and it looks really useful. i never got on with firebug lite. i’m gonna give this a go.

Comment by Jamie — June 6, 2008

Well, from what I can tell, every major browser, except Safari (and that’s because I don’t have a Mac) has its own debugger.

Firefox – firebug, venkman
IE – MS Script Editor, MS Script Debugger
Opera – Dragonfly

So you are pretty much covered when it comes to debugging in the lot of browsers.

Comment by urandom — June 6, 2008

I used this last night. It helped, because I’ve had a heck of a time getting debuggers to work in some older versions of browsers, and in the PC version of Safari.

Comment by Nosredna — June 6, 2008

>>People should really stop calllng every single logger a ‘debugger’

And be fair–he doesn’t call it a debugger, as far as I can tell. “It’s a browser-based JavaScript object logger and inspection tool…”

Comment by Nosredna — June 6, 2008

@urandom: Safari does have a debugger – its part of WebKit – called Drosera…

Comment by blove — June 6, 2008

@blove: Until they make it available (in working conditio) to Windows users, a lot of web developers won’t be able to use it. Even webkit nightly’s drosera.exe throws a fatal exception.

Comment by matanlurey — June 6, 2008

Well, I think this is a nice little tool, and the developer should be encouraged. No, it doesn’t compete with the more comprehensive debuggers, but it does some pretty basic stuff and the main point is that it works cross-browser.

For heavy-duty debugging, you’re probably going to use your favorite dedicated debugger. But I can see where this would be really convenient for quick checks across a bunch of browsers. You don’t have to try to remember how each of the different dedicated debuggers works in all the browsers.

Besides, this is a 1.0 release. The cross-browser concept is sound and, over time, a lot more features will probably be added.

Comment by McLars — June 6, 2008

Yeah, every time I try drosera on the PC it’s a disaster. I’ve given up, waiting for the “all clear.”

Comment by Nosredna — June 6, 2008

Leave a comment

You must be logged in to post a comment.