Lines Matching refs:breakpoint
55 BreakpointAdded: "breakpoint-added",
56 BreakpointRemoved: "breakpoint-removed"
80 var breakpoint = this._breakpointForDebuggerId[debuggerId];
81 if (breakpoint._sourceFileId !== sourceFileId)
83 breakpoint.remove(true);
118 var breakpoint = breakpoints[i];
119 if (breakpoint._sourceFileId !== sourceFileId)
121 if (breakpoint.enabled()) {
122 breakpoint._removeFromDebugger();
123 breakpoint._setInDebugger();
145 * @return {WebInspector.BreakpointManager.Breakpoint}
158 * @return {WebInspector.BreakpointManager.Breakpoint}
162 var breakpoint = this.findBreakpoint(uiSourceCode, lineNumber);
163 if (breakpoint) {
164 breakpoint._updateBreakpoint(condition, enabled);
165 return breakpoint;
167 breakpoint = new WebInspector.BreakpointManager.Breakpoint(this, uiSourceCode, lineNumber, condition, enabled);
168 this._breakpoints.put(breakpoint);
169 return breakpoint;
175 * @return {?WebInspector.BreakpointManager.Breakpoint}
186 * @return {Array.<WebInspector.BreakpointManager.Breakpoint>}
191 var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */(this._breakpoints.keys());
193 var breakpoint = breakpoints[i];
194 var uiLocation = breakpoint._primaryUILocation;
196 result.push(breakpoint);
202 * @return {Array.<WebInspector.BreakpointManager.Breakpoint>}
207 var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */(this._breakpoints.keys());
213 * @return {Array.<{breakpoint: WebInspector.BreakpointManager.Breakpoint, uiLocation: WebInspector.UILocation}>}
218 var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */(this._breakpoints.keys());
220 var breakpoint = breakpoints[i];
221 var uiLocations = Object.values(breakpoint._uiLocations);
225 result.push({breakpoint: breakpoint, uiLocation: uiLocations[j]});
232 * @return {Array.<{breakpoint: WebInspector.BreakpointManager.Breakpoint, uiLocation: WebInspector.UILocation}>}
237 var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */(this._breakpoints.keys());
239 var breakpoint = breakpoints[i];
240 var uiLocations = Object.values(breakpoint._uiLocations);
242 result.push({breakpoint: breakpoint, uiLocation: uiLocations[j]});
252 var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */(this._breakpoints.keys());
254 var breakpoint = breakpoints[i];
255 if (breakpoint.enabled() != toggleState)
256 breakpoint.setEnabled(toggleState);
262 var breakpoints = /** @type {Array.<WebInspector.BreakpointManager.Breakpoint>} */(this._breakpoints.keys());
291 var breakpoint = lineBreakpoints[j];
292 breakpoint._resetLocations();
299 var breakpoint = breakpoints[j];
300 this._breakpoints.remove(breakpoint);
312 var breakpoint = this._breakpointForDebuggerId[breakpointId];
313 if (!breakpoint)
315 if (!this._breakpoints.contains(breakpoint))
316 this._breakpoints.put(breakpoint);
317 breakpoint._addResolvedLocation(location);
321 * @param {WebInspector.BreakpointManager.Breakpoint} breakpoint
324 _removeBreakpoint: function(breakpoint, removeFromStorage)
326 console.assert(!breakpoint._debuggerId)
327 this._breakpoints.remove(breakpoint);
329 this._storage._removeBreakpoint(breakpoint);
333 * @param {WebInspector.BreakpointManager.Breakpoint} breakpoint
336 _uiLocationAdded: function(breakpoint, uiLocation)
350 lineBreakpoints.push(breakpoint);
351 this.dispatchEventToListeners(WebInspector.BreakpointManager.Events.BreakpointAdded, {breakpoint: breakpoint, uiLocation: uiLocation});
355 * @param {WebInspector.BreakpointManager.Breakpoint} breakpoint
358 _uiLocationRemoved: function(breakpoint, uiLocation)
368 lineBreakpoints.remove(breakpoint);
371 this.dispatchEventToListeners(WebInspector.BreakpointManager.Events.BreakpointRemoved, {breakpoint: breakpoint, uiLocation: uiLocation});
385 WebInspector.BreakpointManager.Breakpoint = function(breakpointManager, uiSourceCode, lineNumber, condition, enabled)
395 // Force breakpoint update.
401 WebInspector.BreakpointManager.Breakpoint.prototype = {
521 * @this {WebInspector.BreakpointManager.Breakpoint}
608 var breakpoint = /** @type {WebInspector.BreakpointManager.Storage.Item} */ (breakpoints[i]);
609 this._breakpoints[breakpoint.sourceFileId + ":" + breakpoint.lineNumber] = breakpoint;
622 var breakpoint = this._breakpoints[id];
623 if (breakpoint.sourceFileId === sourceFileId)
624 this._breakpointManager._innerSetBreakpoint(uiSourceCode, breakpoint.lineNumber, breakpoint.condition, breakpoint.enabled);
630 * @param {WebInspector.BreakpointManager.Breakpoint} breakpoint
632 _updateBreakpoint: function(breakpoint)
634 if (this._muted || !breakpoint._breakpointStorageId())
636 this._breakpoints[breakpoint._breakpointStorageId()] = new WebInspector.BreakpointManager.Storage.Item(breakpoint);
641 * @param {WebInspector.BreakpointManager.Breakpoint} breakpoint
643 _removeBreakpoint: function(breakpoint)
647 delete this._breakpoints[breakpoint._breakpointStorageId()];
662 * @param {WebInspector.BreakpointManager.Breakpoint} breakpoint
664 WebInspector.BreakpointManager.Storage.Item = function(breakpoint)
666 var primaryUILocation = breakpoint.primaryUILocation();
667 this.sourceFileId = breakpoint._sourceFileId;
669 this.condition = breakpoint.condition();
670 this.enabled = breakpoint.enabled();