Everybody who developed JS knows that debugging isn't easy. Thanks to Firebug life of a web developer has become a lot easier

But you don't always have Firebug to the rescue (if you have to develop an inhouse application for Internet Explorer only for example). Does jQuery provide some debugging utilities/tools (something similar to log4j, like the console used by dojo toolkit), or are you stuck with the window alert?
And when I see jQuery snippets, they often (always) use chaining, for example:
Can this be easily debugged through Firebug and/or with the jQuery debugging utilities/tools? Or do you have to break it down in single lines to ease the debugging process?