function TC_pauseOnExceptions(aFlag, aOnResponse) {
    this._pauseOnExceptions = aFlag;
    // If the debuggee is paused, the value of the flag will be communicated in
    // the next resumption. Otherwise we have to force a pause in order to send
    // the flag.
    if (!this.paused) {
      this.interrupt(function(aResponse) {
        if (aResponse.error) {
          // Can't continue if pausing failed.
          aOnResponse(aResponse);
          return;
        }
        this.resume(aOnResponse);
      }.bind(this));
    }
  }
/**
   * Enable or disable pausing when an exception is thrown.
   *
   * @param boolean aFlag
   *        Enables pausing if true, disables otherwise.
   * @param function aOnResponse
   *        Called with the response packet.
   */
Enable or disable pausing when an exception is thrown.
@param boolean aFlag
Enables pausing if true, disables otherwise.
@param function aOnResponse
Called with the response packet.
Enable or disable pausing when an exception is thrown . @param boolean aFlag Enables pausing if true disables otherwise . @param function aOnResponse Called with the response packet .
function TC_pauseOnExceptions(aFlag, aOnResponse) {
    this._pauseOnExceptions = aFlag;
    if (!this.paused) {
      this.interrupt(function(aResponse) {
        if (aResponse.error) {
          aOnResponse(aResponse);
          return;
        }
        this.resume(aOnResponse);
      }.bind(this));
    }
  }
function TC_pauseOnExceptions ( aFlag , aOnResponse ) { this . _pauseOnExceptions = aFlag ; if ( ! this . paused ) { this . interrupt ( function ( aResponse ) { if ( aResponse . error ) { aOnResponse ( aResponse ) ; return ; } this . resume ( aOnResponse ) ; } . bind ( this ) ) ; } }
Enable or disable pausing when an exception is thrown.
Enable or disable pausing when an exception is thrown .
// If the debuggee is paused, the value of the flag will be communicated in // the next resumption. Otherwise we have to force a pause in order to send // the flag. // Can't continue if pausing failed.