Home | Legacy Firefox Extensions | Content Policy | Contact



(This addon has been integrated into Firebug since version 1.11.2, and is thus obsolete. There is no need to install it.)

FireClosure is an experimental Firebug extension that allows you to access closed-over ("private") variables in JavaScript, without having to mess around with tedious breakpoints.

For instance, given the following code...

function A() {
var priv = 10;
this.foo = function() { return Math.random()*priv; };
a = new A;

... FireClosure makes getting the value of priv as easy as a.%priv.

There is also some support for showing closures in various DOM views, hidden under the "Show Closure Variable" option of the DOM panel.

Some caveats exist, see the github README.

Feedback appreciated.

Download files:


This page is part of the LegacyCollector website.
Disclaimer: All material on this site is property of their respective owners and available under
open licenses to the best of our knowledge. If you are an author and would like anything removed,
then please write an e-mail to legacy [at] collector dot org.