function DH_openListener(aPort) {
    if (!Services.prefs.getBoolPref("devtools.debugger.remote-enabled")) {
      return false;
    }
    this._checkInit();

    if (this._listener) {
      throw "Debugging listener already open.";
    }

    let localOnly = false;
    // A preference setting can force binding on the loopback interface.
    if (Services.prefs.getBoolPref("devtools.debugger.force-local")) {
      localOnly = true;
    }

    try {
      let socket = new ServerSocket(aPort, localOnly, 4);
      socket.asyncListen(this);
      this._listener = socket;
    } catch (e) {
      dumpn("Could not start debugging listener on port " + aPort + ": " + e);
      throw Cr.NS_ERROR_NOT_AVAILABLE;
    }

    return true;
  }
/**
   * Listens on the given port for remote debugger connections.
   *
   * @param aPort int
   *        The port to listen on.
   */
Listens on the given port for remote debugger connections.
@param aPort int
The port to listen on.
Listens on the given port for remote debugger connections . @param aPort int The port to listen on .
function DH_openListener(aPort) {
    if (!Services.prefs.getBoolPref("devtools.debugger.remote-enabled")) {
      return false;
    }
    this._checkInit();
    if (this._listener) {
      throw "Debugging listener already open.";
    }
    let localOnly = false;
    if (Services.prefs.getBoolPref("devtools.debugger.force-local")) {
      localOnly = true;
    }
    try {
      let socket = new ServerSocket(aPort, localOnly, 4);
      socket.asyncListen(this);
      this._listener = socket;
    } catch (e) {
      dumpn("Could not start debugging listener on port " + aPort + ": " + e);
      throw Cr.NS_ERROR_NOT_AVAILABLE;
    }
    return true;
  }
function DH_openListener ( aPort ) { if ( ! Services . prefs . getBoolPref ( "devtools.debugger.remote-enabled" ) ) { return false ; } this . _checkInit ( ) ; if ( this . _listener ) { throw "Debugging listener already open." ; } let localOnly = false ; if ( Services . prefs . getBoolPref ( "devtools.debugger.force-local" ) ) { localOnly = true ; } try { let socket = new ServerSocket ( aPort , localOnly , 4 ) ; socket . asyncListen ( this ) ; this . _listener = socket ; } catch ( e ) { dumpn ( "Could not start debugging listener on port " + aPort + ": " + e ) ; throw Cr . NS_ERROR_NOT_AVAILABLE ; } return true ; }
Listens on the given port for remote debugger connections.
Listens on the given port for remote debugger connections .
// A preference setting can force binding on the loopback interface.