Firebug not running in Firefox on Linux (solution)

Firebug LogoSince switching to Linux I’ve had one issue that has really caused me grief over the past few weeks, and it’s been with Firebug, which to a web-developer is a pretty indispensable tool!

I compiled Firefox 2.0.0.11 using the ebuild from Gentoo Portage, and then installed the Firebug extension, but once Firefox had restarted to complete the installation, Firebug wouldn’t open at all. Whenever I tried to open it I received various error messages in Firefox’s error console including ‘permission denied to call method location.tostring’. Upgrading to Firefox 2.0.0.12, and Firebug 1.1.0b10 didn’t help.

After some digging I found a bug report that described exactly what’s happening to me. So I added ‘mozdevelop’ to my Portage USE flags, and then recompiled Firefox and now Firebug works a treat!