B2G/gecko/browser/devtools/debugger/debugger-controller.js
/**
   * Remove a breakpoint.
   *
   * @param object aBreakpoint
   *        The breakpoint you want to remove.
   * @param function [aCallback]
   *        Optional function to invoke once the breakpoint is removed. The
   *        callback is invoked with one argument: the breakpoint location
   *        object which holds the url and line properties.
   * @param boolean [aNoEditorUpdate=false]
   *        Tells if you want to skip editor updates. Typically the editor is
   *        updated to visually indicate that a breakpoint has been removed.
   * @param boolean [aNoPaneUpdate=false]
   *        Tells if you want to skip any breakpoint pane updates.
   */
Remove a breakpoint.
@param object aBreakpoint
The breakpoint you want to remove.
@param function [aCallback]
Optional function to invoke once the breakpoint is removed. The
callback is invoked with one argument: the breakpoint location
object which holds the url and line properties.
@param boolean [aNoEditorUpdate=false]
Tells if you want to skip editor updates. Typically the editor is
updated to visually indicate that a breakpoint has been removed.
@param boolean [aNoPaneUpdate=false]
Tells if you want to skip any breakpoint pane updates.
Remove a breakpoint . @param object aBreakpoint The breakpoint you want to remove . @param function [ aCallback ] Optional function to invoke once the breakpoint is removed . The callback is invoked with one argument : the breakpoint location object which holds the url and line properties . @param boolean [ aNoEditorUpdate = false ] Tells if you want to skip editor updates . Typically the editor is updated to visually indicate that a breakpoint has been removed . @param boolean [ aNoPaneUpdate = false ] Tells if you want to skip any breakpoint pane updates .
function BP_removeBreakpoint(aBreakpoint, aCallback, aNoEditorUpdate, aNoPaneUpdate) {
    if (!(aBreakpoint.actor in this.store)) {
      aCallback && aCallback(aBreakpoint.location);
      return;
    }
    aBreakpoint.remove(function() {
      delete this.store[aBreakpoint.actor];
      if (!aNoEditorUpdate) {
        let url = DebuggerView.Scripts.selected;
        if (url == aBreakpoint.location.url) {
          this._skipEditorBreakpointChange = true;
          this.editor.removeBreakpoint(aBreakpoint.location.line - 1);
          this._skipEditorBreakpointChange = false;
        }
      }
      if (!aNoPaneUpdate) {
        DebuggerView.Breakpoints.removeBreakpoint(aBreakpoint.actor);
      }
      aCallback && aCallback(aBreakpoint.location);
    }.bind(this));
  }
function BP_removeBreakpoint ( aBreakpoint , aCallback , aNoEditorUpdate , aNoPaneUpdate ) { if ( ! ( aBreakpoint . actor in this . store ) ) { aCallback && aCallback ( aBreakpoint . location ) ; return ; } aBreakpoint . remove ( function ( ) { delete this . store [ aBreakpoint . actor ] ; if ( ! aNoEditorUpdate ) { let url = DebuggerView . Scripts . selected ; if ( url == aBreakpoint . location . url ) { this . _skipEditorBreakpointChange = true ; this . editor . removeBreakpoint ( aBreakpoint . location . line - 1 ) ; this . _skipEditorBreakpointChange = false ; } } if ( ! aNoPaneUpdate ) { DebuggerView . Breakpoints . removeBreakpoint ( aBreakpoint . actor ) ; } aCallback && aCallback ( aBreakpoint . location ) ; } . bind ( this ) ) ; }
Remove a breakpoint.
Remove a breakpoint .