B2G/gecko/toolkit/devtools/debugger/server/dbg-script-actors.js
/**
   * Add a debuggee global to the Debugger object.
   */
Add a debuggee global to the Debugger object.
Add a debuggee global to the Debugger object .
function TA_addDebuggee(aGlobal) {
    if (!this.dbg) {
      this.dbg = new Debugger();
      this.dbg.uncaughtExceptionHook = this.uncaughtExceptionHook.bind(this);
      this.dbg.onDebuggerStatement = this.onDebuggerStatement.bind(this);
      this.dbg.onNewScript = this.onNewScript.bind(this);
      this.dbg.enabled = this._state != "detached";
    }
    this.dbg.addDebuggee(aGlobal);
    for (let s of this.dbg.findScripts()) {
      this._addScript(s);
    }
  }
function TA_addDebuggee ( aGlobal ) { if ( ! this . dbg ) { this . dbg = new Debugger ( ) ; this . dbg . uncaughtExceptionHook = this . uncaughtExceptionHook . bind ( this ) ; this . dbg . onDebuggerStatement = this . onDebuggerStatement . bind ( this ) ; this . dbg . onNewScript = this . onNewScript . bind ( this ) ; this . dbg . enabled = this . _state != "detached" ; } this . dbg . addDebuggee ( aGlobal ) ; for ( let s of this . dbg . findScripts ( ) ) { this . _addScript ( s ) ; } }
Add a debuggee global to the Debugger object.
Add a debuggee global to the Debugger object .
// Use the inspector xpcom component to turn on debugging // for aGlobal's compartment.  Ideally this won't be necessary // medium- to long-term, and will be managed by the engine // instead. // Keep the debugger disabled until a client attaches.