B2G/gecko/browser/devtools/debugger/debugger-controller.js
/**
   * Update the editor to display the specified breakpoint in the gutter.
   *
   * @param object aBreakpoint
   *        The breakpoint you want to display.
   * @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 added.
   * @param boolean [aNoPaneUpdate=false]
   *        Tells if you want to skip any breakpoint pane updates.
   */
Update the editor to display the specified breakpoint in the gutter.
@param object aBreakpoint
The breakpoint you want to display.
@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 added.
@param boolean [aNoPaneUpdate=false]
Tells if you want to skip any breakpoint pane updates.
Update the editor to display the specified breakpoint in the gutter . @param object aBreakpoint The breakpoint you want to display . @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 added . @param boolean [ aNoPaneUpdate = false ] Tells if you want to skip any breakpoint pane updates .
function BP_displayBreakpoint(aBreakpoint, aNoEditorUpdate, aNoPaneUpdate) {
    if (!aNoEditorUpdate) {
      let url = DebuggerView.Scripts.selected;
      if (url == aBreakpoint.location.url) {
        this._skipEditorBreakpointChange = true;
        this.editor.addBreakpoint(aBreakpoint.location.line - 1);
        this._skipEditorBreakpointChange = false;
      }
    }
    if (!aNoPaneUpdate) {
      let { url: url, line: line } = aBreakpoint.location;
      if (!aBreakpoint.lineText || !aBreakpoint.lineInfo) {
        let scripts = DebuggerController.SourceScripts;
        aBreakpoint.lineText = scripts.getLineText(line - 1);
        aBreakpoint.lineInfo = scripts.getScriptLabel(url) + ":" + line;
      }
      DebuggerView.Breakpoints.addBreakpoint(
        aBreakpoint.actor,
        aBreakpoint.lineInfo,
        aBreakpoint.lineText, url, line);
    }
  }
function BP_displayBreakpoint ( aBreakpoint , aNoEditorUpdate , aNoPaneUpdate ) { if ( ! aNoEditorUpdate ) { let url = DebuggerView . Scripts . selected ; if ( url == aBreakpoint . location . url ) { this . _skipEditorBreakpointChange = true ; this . editor . addBreakpoint ( aBreakpoint . location . line - 1 ) ; this . _skipEditorBreakpointChange = false ; } } if ( ! aNoPaneUpdate ) { let { url : url , line : line } = aBreakpoint . location ; if ( ! aBreakpoint . lineText || ! aBreakpoint . lineInfo ) { let scripts = DebuggerController . SourceScripts ; aBreakpoint . lineText = scripts . getLineText ( line - 1 ) ; aBreakpoint . lineInfo = scripts . getScriptLabel ( url ) + ":" + line ; } DebuggerView . Breakpoints . addBreakpoint ( aBreakpoint . actor , aBreakpoint . lineInfo , aBreakpoint . lineText , url , line ) ; } }
Update the editor to display the specified breakpoint in the gutter.
Update the editor to display the specified breakpoint in the gutter .