B2G/gecko/browser/devtools/debugger/debugger-view.js
/**
  * Sets the current frames state based on the debugger active thread state.
  *
  * @param string aState
  *        Either "paused" or "attached".
  */
Sets the current frames state based on the debugger active thread state.
@param string aState
Either "paused" or "attached".
Sets the current frames state based on the debugger active thread state . @param string aState Either " paused " or " attached " .
function DVF_updateState(aState) {
    let resume = DebuggerView._resumeButton;
    let resumeKey = LayoutHelpers.prettyKey(DebuggerView._resumeKey);
    if (aState == "paused") {
      resume.setAttribute("tooltiptext", L10N.getFormatStr("resumeButtonTooltip", [resumeKey]));
      resume.setAttribute("checked", true);
    }
    else if (aState == "attached") {
      resume.setAttribute("tooltiptext", L10N.getFormatStr("pauseButtonTooltip", [resumeKey]));
      resume.removeAttribute("checked");
    }
  }
function DVF_updateState ( aState ) { let resume = DebuggerView . _resumeButton ; let resumeKey = LayoutHelpers . prettyKey ( DebuggerView . _resumeKey ) ; if ( aState == "paused" ) { resume . setAttribute ( "tooltiptext" , L10N . getFormatStr ( "resumeButtonTooltip" , [ resumeKey ] ) ) ; resume . setAttribute ( "checked" , true ) ; } else if ( aState == "attached" ) { resume . setAttribute ( "tooltiptext" , L10N . getFormatStr ( "pauseButtonTooltip" , [ resumeKey ] ) ) ; resume . removeAttribute ( "checked" ) ; } }
Sets the current frames state based on the debugger active thread state.
Sets the current frames state based on the debugger active thread state .
// If we're paused, show a pause label and a resume label on the button. // If we're attached, do the opposite.