Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2046)

Unified Diff: Source/devtools/front_end/DebuggerModel.js

Issue 15096004: Passing hit breakpoint IDs to ScriptDebugServer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/DebuggerModel.js
diff --git a/Source/devtools/front_end/DebuggerModel.js b/Source/devtools/front_end/DebuggerModel.js
index 7de32116cdf7f214bf6b430851a708ac67fff9a4..9808d1b9b54180bb5bd1f8bf5ea020019b9ddcfc 100644
--- a/Source/devtools/front_end/DebuggerModel.js
+++ b/Source/devtools/front_end/DebuggerModel.js
@@ -304,7 +304,7 @@ WebInspector.DebuggerModel.prototype = {
{
callback(error);
if (!error && callFrames && callFrames.length)
- this._pausedScript(callFrames, this._debuggerPausedDetails.reason, this._debuggerPausedDetails.auxData);
+ this._pausedScript(callFrames, this._debuggerPausedDetails.reason, this._debuggerPausedDetails.auxData, this._debuggerPausedDetails.breakpointIds);
},
/**
@@ -346,10 +346,11 @@ WebInspector.DebuggerModel.prototype = {
* @param {Array.<DebuggerAgent.CallFrame>} callFrames
* @param {string} reason
* @param {*} auxData
+ * @param {Array.<string>} breakpointIds
*/
- _pausedScript: function(callFrames, reason, auxData)
+ _pausedScript: function(callFrames, reason, auxData, breakpointIds)
{
- this._setDebuggerPausedDetails(new WebInspector.DebuggerPausedDetails(this, callFrames, reason, auxData));
+ this._setDebuggerPausedDetails(new WebInspector.DebuggerPausedDetails(this, callFrames, reason, auxData, breakpointIds));
},
_resumedScript: function()
@@ -613,10 +614,11 @@ WebInspector.DebuggerDispatcher.prototype = {
* @param {Array.<DebuggerAgent.CallFrame>} callFrames
* @param {string} reason
* @param {Object=} auxData
+ * @param {Array.<string>} breakointsIds
*/
- paused: function(callFrames, reason, auxData)
+ paused: function(callFrames, reason, auxData, breakointsIds)
{
- this._debuggerModel._pausedScript(callFrames, reason, auxData);
+ this._debuggerModel._pausedScript(callFrames, reason, auxData, breakointsIds);
},
resumed: function()
@@ -810,8 +812,9 @@ WebInspector.DebuggerModel.CallFrame.prototype = {
* @param {Array.<DebuggerAgent.CallFrame>} callFrames
* @param {string} reason
* @param {*} auxData
+ * @param {Array.<string>} breakpointIds
*/
-WebInspector.DebuggerPausedDetails = function(model, callFrames, reason, auxData)
+WebInspector.DebuggerPausedDetails = function(model, callFrames, reason, auxData, breakpointIds)
{
this.callFrames = [];
for (var i = 0; i < callFrames.length; ++i) {
@@ -822,6 +825,7 @@ WebInspector.DebuggerPausedDetails = function(model, callFrames, reason, auxData
}
this.reason = reason;
this.auxData = auxData;
+ this.breakpointIds = breakpointIds;
}
WebInspector.DebuggerPausedDetails.prototype = {

Powered by Google App Engine
This is Rietveld 408576698