FireBug is a new tool that aids with debugging Javascript, DHTML, and Ajax. It is like a combination of the Javascript Console, DOM Inspector, and a command line Javascript interpreter.
https://addons.mozilla.org/extensions/moreinfo.php?application=firefox&id=1843