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

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

Issue 651533003: DevTools: Introduce Debugger::Reason::PromiseRejection pause reason. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: also disaply <exception> in scopes sidebar Created 6 years, 2 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
« no previous file with comments | « Source/core/inspector/ScriptDebugListener.h ('k') | Source/devtools/front_end/sources/SourcesPanel.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/sdk/DebuggerModel.js
diff --git a/Source/devtools/front_end/sdk/DebuggerModel.js b/Source/devtools/front_end/sdk/DebuggerModel.js
index 5ff0e6f03c09caae0e3dc53167a21975905cb8fd..805111c000a62872268653e928489352e7fe78ef 100644
--- a/Source/devtools/front_end/sdk/DebuggerModel.js
+++ b/Source/devtools/front_end/sdk/DebuggerModel.js
@@ -95,6 +95,7 @@ WebInspector.DebuggerModel.BreakReason = {
EventListener: "EventListener",
XHR: "XHR",
Exception: "exception",
+ PromiseRejection: "promiseRejection",
Assert: "assert",
CSPViolation: "CSPViolation",
DebugCommand: "debugCommand"
@@ -1097,7 +1098,7 @@ WebInspector.DebuggerPausedDetails.prototype = {
*/
exception: function()
{
- if (this.reason !== WebInspector.DebuggerModel.BreakReason.Exception)
+ if (this.reason !== WebInspector.DebuggerModel.BreakReason.Exception && this.reason !== WebInspector.DebuggerModel.BreakReason.PromiseRejection)
return null;
return this.target().runtimeModel.createRemoteObject(/** @type {!RuntimeAgent.RemoteObject} */(this.auxData));
},
« no previous file with comments | « Source/core/inspector/ScriptDebugListener.h ('k') | Source/devtools/front_end/sources/SourcesPanel.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698