B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
   * Enables a breakpoint.
   *
   * @param object aBreakpoint
   *        An element representing a breakpoint.
   * @param function aCallback
   *        Optional function to invoke once the breakpoint is enabled.
   * @param boolean aNoCheckboxUpdate
   *        Pass true to not update the checkbox checked state.
   *        This is usually necessary when the checked state will be updated
   *        automatically (e.g: on a checkbox click).
   */
Enables a breakpoint.
@param object aBreakpoint
An element representing a breakpoint.
@param function aCallback
Optional function to invoke once the breakpoint is enabled.
@param boolean aNoCheckboxUpdate
Pass true to not update the checkbox checked state.
This is usually necessary when the checked state will be updated
automatically .
Enables a breakpoint . @param object aBreakpoint An element representing a breakpoint . @param function aCallback Optional function to invoke once the breakpoint is enabled . @param boolean aNoCheckboxUpdate Pass true to not update the checkbox checked state . This is usually necessary when the checked state will be updated automatically .
function DVB_enableBreakpoint(aTarget, aCallback, aNoCheckboxUpdate) {
    let { breakpointUrl: url, breakpointLine: line } = aTarget;
    let breakpoint = DebuggerController.Breakpoints.getBreakpoint(url, line)
    if (!breakpoint) {
      if (!aNoCheckboxUpdate) {
        aTarget.getElementsByTagName("checkbox")[0].setAttribute("checked", "true");
      }
      DebuggerController.Breakpoints.
        addBreakpoint({ url: url, line: line }, aCallback);
      return true;
    }
    return false;
  }
function DVB_enableBreakpoint ( aTarget , aCallback , aNoCheckboxUpdate ) { let { breakpointUrl : url , breakpointLine : line } = aTarget ; let breakpoint = DebuggerController . Breakpoints . getBreakpoint ( url , line ) if ( ! breakpoint ) { if ( ! aNoCheckboxUpdate ) { aTarget . getElementsByTagName ( "checkbox" ) [ 0 ] . setAttribute ( "checked" , "true" ) ; } DebuggerController . Breakpoints . addBreakpoint ( { url : url , line : line } , aCallback ) ; return true ; } return false ; }
Enables a breakpoint.
Enables a breakpoint .