The FireBug Debugger
Starting with the next release of FireBug, this is all about to change. I've spent the last couple days working on adding a simple, lightweight debugger to FireBug that is so easy to use that we can no longer make excuses. Here is a screen shot:
The key to the FireBug debugger is minimalism. I don't want to be Visual Studio, and I'm not planning to copy all of Venkman's features. I just want to be able to say "Hey FireBug, stop my script right here so I can see what the heck is going on!" So just how do you stop your scripts using FireBug?
Breakpoints vs. The "debugger" Keyword
debugger in your script, FireBug will treat that line as if it were a breakpoint, and stop your script right there.
Of course, breakpoints are still handy, especially if you want to examine a script on somebody else's website, so FireBug still allows you to set breakpoints by clicking on any line number.
Before I release FireBug 0.4 to the world, I'd like to take some time to test it out and gather feedback from a few people. If you're interested in trying it out and helping me get the debugger right, please email me and I will send you a link to install a development build.