B2G/gecko/browser/devtools/debugger/debugger-controller.js
/**
   * Initializes a debugger client and connects it to the debugger server,
   * wiring event handlers as necessary.
   */
Initializes a debugger client and connects it to the debugger server,
wiring event handlers as necessary.
Initializes a debugger client and connects it to the debugger server wiring event handlers as necessary .
function DC__connect() {
    if (this._isRemoteDebugger) {
      if (!this._prepareConnection()) {
        return;
      }
    }
    let transport = (this._isChromeDebugger || this._isRemoteDebugger)
      ? debuggerSocketConnect(Prefs.remoteHost, Prefs.remotePort)
      : DebuggerServer.connectPipe();
    let client = this.client = new DebuggerClient(transport);
    client.addListener("tabNavigated", this._onTabNavigated);
    client.addListener("tabDetached", this._onTabDetached);
    client.connect(function(aType, aTraits) {
      client.listTabs(function(aResponse) {
        let tab = aResponse.tabs[aResponse.selected];
        this._startDebuggingTab(client, tab);
        this.dispatchEvent("Debugger:Connecting");
      }.bind(this));
    }.bind(this));
  }
function DC__connect ( ) { if ( this . _isRemoteDebugger ) { if ( ! this . _prepareConnection ( ) ) { return ; } } let transport = ( this . _isChromeDebugger || this . _isRemoteDebugger ) ? debuggerSocketConnect ( Prefs . remoteHost , Prefs . remotePort ) : DebuggerServer . connectPipe ( ) ; let client = this . client = new DebuggerClient ( transport ) ; client . addListener ( "tabNavigated" , this . _onTabNavigated ) ; client . addListener ( "tabDetached" , this . _onTabDetached ) ; client . connect ( function ( aType , aTraits ) { client . listTabs ( function ( aResponse ) { let tab = aResponse . tabs [ aResponse . selected ] ; this . _startDebuggingTab ( client , tab ) ; this . dispatchEvent ( "Debugger:Connecting" ) ; } . bind ( this ) ) ; } . bind ( this ) ) ; }
Initializes a debugger client and connects it to the debugger server,
 wiring event handlers as necessary.
Initializes a debugger client and connects it to the debugger server wiring event handlers as necessary .