Lines Matching refs:breakpoint
110 var breakpoint = this._breakpointManager.findBreakpoint(this._uiSourceCode, lineNumber);
111 if (!breakpoint) {
112 // This row doesn't have a breakpoint: We want to show Add Breakpoint and Add and Edit Breakpoint.
113 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Add breakpoint" : "Add Breakpoint"), this._setBreakpoint.bind(this, lineNumber, "", true));
114 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Add conditional breakpoint?" : "Add Conditional Breakpoint?"), this._editBreakpointCondition.bind(this, lineNumber));
116 // This row has a breakpoint, we want to show edit and remove breakpoint, and either disable or enable.
117 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Remove breakpoint" : "Remove Breakpoint"), breakpoint.remove.bind(breakpoint));
118 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Edit breakpoint?" : "Edit Breakpoint?"), this._editBreakpointCondition.bind(this, lineNumber, breakpoint));
119 if (breakpoint.enabled())
120 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Disable breakpoint" : "Disable Breakpoint"), breakpoint.setEnabled.bind(breakpoint, false));
122 contextMenu.appendItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Enable breakpoint" : "Enable Breakpoint"), breakpoint.setEnabled.bind(breakpoint, true));
189 var breakpointDecoration = this._textEditor.getAttribute(lineNumber, "breakpoint");
207 // Save and remove muted breakpoint decorations.
209 var breakpointDecoration = this._textEditor.getAttribute(lineNumber, "breakpoint");
340 var breakpoint = {
345 this.textEditor.setAttribute(lineNumber, "breakpoint", breakpoint);
353 this.textEditor.removeAttribute(lineNumber, "breakpoint");
369 * @param {WebInspector.BreakpointManager.Breakpoint=} breakpoint
371 _editBreakpointCondition: function(lineNumber, breakpoint)
384 if (breakpoint)
385 breakpoint.setCondition(newText);
392 this._conditionEditorElement.value = breakpoint ? breakpoint.condition() : "";
399 conditionElement.className = "source-frame-breakpoint-condition";
402 labelElement.className = "source-frame-breakpoint-message";
403 labelElement.htmlFor = "source-frame-breakpoint-condition";
404 labelElement.appendChild(document.createTextNode(WebInspector.UIString("The breakpoint on line %d will stop only if this expression is true:", lineNumber)));
408 editorElement.id = "source-frame-breakpoint-condition";
479 var breakpoint = /** @type {WebInspector.BreakpointManager.Breakpoint} */ (event.data.breakpoint);
481 this._addBreakpointDecoration(uiLocation.lineNumber, breakpoint.condition(), breakpoint.enabled(), false);
492 var breakpoint = /** @type {WebInspector.BreakpointManager.Breakpoint} */ (event.data.breakpoint);
587 var breakpoint = this._breakpointManager.findBreakpoint(this._uiSourceCode, lineNumber);
588 if (breakpoint) {
590 breakpoint.setEnabled(!breakpoint.enabled());
592 breakpoint.remove();