Search code examples
firebugmozilladeveloper-toolsfirefox-developer-toolsfirebug-lite

Firebug lite. Embed without hitting external or local network. Embed as inline script.


I am trying to feed the contents of the script with a body rather than add a script tag with a url.

I have my reasons. Don't ask why. Please.

However, firebug lite seems to by default read the url of it's script, i guess amongst them to read the default states such as

  '#startOpened'

Is there ANY way you can embed firebug lite without actually loading a src script? But by executing the contents? Is there any global flags that can be set prior?


Solution

  • I've never tried to embed Firebug Lite completely into a website, though I think to remember that Firebug Lite stores its configuration in a cookie. And I found some related code that seems to confirm that reading from a cookie called FirebugLite. So, you may set those cookie values manually to configure it.

    The other option you have is to change the default values of the options by adjusting them within the code.

    Having said that, if you're using a browser, you should rather use the built-in developer tools, as they provide a much richer feature set and are continuously updated.

    Also, the Firefox DevTools team is working on splitting their tools from Firefox, so that it's possible to use them in any browser. Though, at the moment, the only fully functional tool is the Debugger, and it requires to be run as a separate website (which doesn't seem to be possible for you if I understand you correctly).