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

Side by Side Diff: third_party/WebKit/Source/platform/v8_inspector/js_protocol.json

Issue 2146333003: [DevTools] Replace SetScriptSourceError with ExceptionDetails in protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: a Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 { 1 {
2 "version": { "major": "1", "minor": "1" }, 2 "version": { "major": "1", "minor": "1" },
3 "domains": [{ 3 "domains": [{
4 "domain": "Runtime", 4 "domain": "Runtime",
5 "description": "Runtime domain exposes JavaScript runtime by means of re mote evaluation and mirror objects. Evaluation results are returned as mirror ob ject that expose object type, string representation and unique identifier that c an be used for further object reference. Original objects are maintained in memo ry unless they are either explicitly released or are released along with the oth er objects in their object group.", 5 "description": "Runtime domain exposes JavaScript runtime by means of re mote evaluation and mirror objects. Evaluation results are returned as mirror ob ject that expose object type, string representation and unique identifier that c an be used for further object reference. Original objects are maintained in memo ry unless they are either explicitly released or are released along with the oth er objects in their object group.",
6 "types": [ 6 "types": [
7 { 7 {
8 "id": "ScriptId", 8 "id": "ScriptId",
9 "type": "string", 9 "type": "string",
10 "description": "Unique script identifier." 10 "description": "Unique script identifier."
(...skipping 401 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 "properties": [ 412 "properties": [
413 { "name": "type", "type": "string", "enum": ["global", "loca l", "with", "closure", "catch", "block", "script"], "description": "Scope type." }, 413 { "name": "type", "type": "string", "enum": ["global", "loca l", "with", "closure", "catch", "block", "script"], "description": "Scope type." },
414 { "name": "object", "$ref": "Runtime.RemoteObject", "descrip tion": "Object representing the scope. For <code>global</code> and <code>with</c ode> scopes it represents the actual object; for the rest of the scopes, it is a rtificial transient object enumerating scope variables as its properties." }, 414 { "name": "object", "$ref": "Runtime.RemoteObject", "descrip tion": "Object representing the scope. For <code>global</code> and <code>with</c ode> scopes it represents the actual object; for the rest of the scopes, it is a rtificial transient object enumerating scope variables as its properties." },
415 { "name": "name", "type": "string", "optional": true, "hidde n": true }, 415 { "name": "name", "type": "string", "optional": true, "hidde n": true },
416 { "name": "startLocation", "$ref": "Location", "optional": t rue, "hidden": true, "description": "Location in the source code where scope sta rts" }, 416 { "name": "startLocation", "$ref": "Location", "optional": t rue, "hidden": true, "description": "Location in the source code where scope sta rts" },
417 { "name": "endLocation", "$ref": "Location", "optional": tru e, "hidden": true, "description": "Location in the source code where scope ends" } 417 { "name": "endLocation", "$ref": "Location", "optional": tru e, "hidden": true, "description": "Location in the source code where scope ends" }
418 ], 418 ],
419 "description": "Scope description." 419 "description": "Scope description."
420 }, 420 },
421 { 421 {
422 "id": "SetScriptSourceError",
423 "type": "object",
424 "properties": [
425 { "name": "message", "type": "string", "description": "Compi ler error message" },
426 { "name": "lineNumber", "type": "integer", "description": "C ompile error line number (1-based)" },
427 { "name": "columnNumber", "type": "integer", "description": "Compile error column number (1-based)" }
428 ],
429 "description": "Error data for setScriptSource command. Contains uncompilable script source error.",
430 "hidden": true
431 },
432 {
433 "id": "SearchMatch", 422 "id": "SearchMatch",
434 "type": "object", 423 "type": "object",
435 "description": "Search match for resource.", 424 "description": "Search match for resource.",
436 "properties": [ 425 "properties": [
437 { "name": "lineNumber", "type": "number", "description": "Li ne number in resource content." }, 426 { "name": "lineNumber", "type": "number", "description": "Li ne number in resource content." },
438 { "name": "lineContent", "type": "string", "description": "L ine with match content." } 427 { "name": "lineContent", "type": "string", "description": "L ine with match content." }
439 ], 428 ],
440 "hidden": true 429 "hidden": true
441 } 430 }
442 ], 431 ],
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 "name": "setScriptSource", 539 "name": "setScriptSource",
551 "parameters": [ 540 "parameters": [
552 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Id of the script to edit." }, 541 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti on": "Id of the script to edit." },
553 { "name": "scriptSource", "type": "string", "description": " New content of the script." }, 542 { "name": "scriptSource", "type": "string", "description": " New content of the script." },
554 { "name": "preview", "type": "boolean", "optional": true, "d escription": " If true the change will not actually be applied. Preview mode may be used to get result description without actually modifying the code.", "hidde n": true } 543 { "name": "preview", "type": "boolean", "optional": true, "d escription": " If true the change will not actually be applied. Preview mode may be used to get result description without actually modifying the code.", "hidde n": true }
555 ], 544 ],
556 "returns": [ 545 "returns": [
557 { "name": "callFrames", "type": "array", "optional": true, " items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing has happened while VM was stopped." }, 546 { "name": "callFrames", "type": "array", "optional": true, " items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing has happened while VM was stopped." },
558 { "name": "stackChanged", "type": "boolean", "optional": tru e, "description": "Whether current call stack was modified after applying the c hanges.", "hidden": true }, 547 { "name": "stackChanged", "type": "boolean", "optional": tru e, "description": "Whether current call stack was modified after applying the c hanges.", "hidden": true },
559 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", " optional": true, "description": "Async stack trace, if any.", "hidden": true }, 548 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", " optional": true, "description": "Async stack trace, if any.", "hidden": true },
560 { "name": "compileError", "optional": true, "$ref": "SetScri ptSourceError", "description": "Error data if any." } 549 { "name": "compileError", "optional": true, "$ref": "Runtime .ExceptionDetails", "description": "Error data if any." }
561 ], 550 ],
562 "description": "Edits JavaScript source live." 551 "description": "Edits JavaScript source live."
563 }, 552 },
564 { 553 {
565 "name": "restartFrame", 554 "name": "restartFrame",
566 "parameters": [ 555 "parameters": [
567 { "name": "callFrameId", "$ref": "CallFrameId", "description ": "Call frame identifier to evaluate on." } 556 { "name": "callFrameId", "$ref": "CallFrameId", "description ": "Call frame identifier to evaluate on." }
568 ], 557 ],
569 "returns": [ 558 "returns": [
570 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "New stack trace." }, 559 { "name": "callFrames", "type": "array", "items": { "$ref": "CallFrame" }, "description": "New stack trace." },
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 { 984 {
996 "name": "heapStatsUpdate", 985 "name": "heapStatsUpdate",
997 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments", 986 "description": "If heap objects tracking has been started then b ackend may send update for one or more fragments",
998 "parameters": [ 987 "parameters": [
999 { "name": "statsUpdate", "type": "array", "items": { "type": "integer" }, "description": "An array of triplets. Each triplet describes a fra gment. The first integer is the fragment index, the second integer is a total co unt of objects for the fragment, the third integer is a total size of the object s for the fragment."} 988 { "name": "statsUpdate", "type": "array", "items": { "type": "integer" }, "description": "An array of triplets. Each triplet describes a fra gment. The first integer is the fragment index, the second integer is a total co unt of objects for the fragment, the third integer is a total size of the object s for the fragment."}
1000 ] 989 ]
1001 } 990 }
1002 ] 991 ]
1003 }] 992 }]
1004 } 993 }
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/V8DebuggerImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698