tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

index.rst (1111B)


      1 ===========================
      2 Access debugging in add-ons
      3 ===========================
      4 
      5 .. warning::
      6  We are planning to deprecate the use by Firefox add-ons of the techniques described in this document. Don't write new add-ons that use these techniques.
      7 
      8 The following items are accessible in the context of chrome://browser/content/debugger.xul (or, in version 23 beta, chrome://browser/content/devtools/debugger.xul):
      9 
     10 
     11 - window.addEventListener("Debugger:EditorLoaded") - called when the read-only script panel loaded.
     12 - window.addEventListener("Debugger:EditorUnloaded")
     13 
     14 
     15 Relevant files:
     16 
     17 
     18 - chrome://browser/content/devtools/debugger-controller.js
     19 - chrome://browser/content/devtools/debugger-toolbar.js
     20 - chrome://browser/content/devtools/debugger-view.js
     21 - chrome://browser/content/devtools/debugger-panes.js
     22 
     23 
     24 Unfortunately there is not yet any API to evaluate watches/expressions within the debugged scope, or highlight elements on the page that are referenced as variables in the debugged scope. (currently a work in progress, see bug `653545 <https://bugzilla.mozilla.org/show_bug.cgi?id=653545>`_.)