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

Unified Diff: Source/devtools/protocol.json

Issue 290633009: DevTools: Show detailed information for exceptions during snippet execution. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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/devtools/front_end/sdk/ScriptSnippetModel.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/protocol.json
diff --git a/Source/devtools/protocol.json b/Source/devtools/protocol.json
index ce54677f1a64a547bcd019aee6b33f6f2f8796aa..a4c6bd92ae287a7fa907a1c8b4054d2814f7bc5f 100644
--- a/Source/devtools/protocol.json
+++ b/Source/devtools/protocol.json
@@ -2909,6 +2909,18 @@
"description": "Scope description."
},
{
+ "id": "ExceptionMessage",
vsevik 2014/05/21 13:16:33 Exception details
+ "type": "object",
+ "description": "Exception message.",
vsevik 2014/05/21 13:16:33 Detailed information on exception (or error) that
+ "properties": [
+ { "name": "text", "type": "string", "description": "Exception text." },
+ { "name": "url", "type": "string", "optional": true, "description": "URL of the message origin." },
+ { "name": "line", "type": "integer", "optional": true, "description": "Line number in the resource that generated this message." },
+ { "name": "column", "type": "integer", "optional": true, "description": "Column number in the resource that generated this message." },
+ { "name": "stackTrace", "$ref": "Console.StackTrace", "optional": true, "description": "JavaScript stack trace for assertions and error messages." }
+ ]
+ },
+ {
"id": "SetScriptSourceError",
"type": "object",
"properties": [
@@ -3123,7 +3135,7 @@
],
"returns": [
{ "name": "scriptId", "$ref": "ScriptId", "optional": true, "description": "Id of the script." },
- { "name": "syntaxErrorMessage", "type": "string", "optional": true, "description": "Syntax error message if compilation failed." }
+ { "name": "exceptionMessage", "$ref": "ExceptionMessage", "optional": true, "description": "Exception message."}
vsevik 2014/05/21 13:16:33 exceptionDetails here and in other places.
],
"description": "Compiles expression."
},
@@ -3138,7 +3150,7 @@
],
"returns": [
{ "name": "result", "$ref": "Runtime.RemoteObject", "description": "Run result." },
- { "name": "wasThrown", "type": "boolean", "optional": true, "description": "True if the result was thrown during the script run." }
+ { "name": "exceptionMessage", "$ref": "ExceptionMessage", "optional": true, "description": "Exception message."}
],
"description": "Runs script with given id in a given context."
},
« no previous file with comments | « Source/devtools/front_end/sdk/ScriptSnippetModel.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698