OLD | NEW |
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 550 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 { "name": "query", "type": "string", "description": "String
to search for." }, | 561 { "name": "query", "type": "string", "description": "String
to search for." }, |
562 { "name": "caseSensitive", "type": "boolean", "optional": tr
ue, "description": "If true, search is case sensitive." }, | 562 { "name": "caseSensitive", "type": "boolean", "optional": tr
ue, "description": "If true, search is case sensitive." }, |
563 { "name": "isRegex", "type": "boolean", "optional": true, "d
escription": "If true, treats string parameter as regex." } | 563 { "name": "isRegex", "type": "boolean", "optional": true, "d
escription": "If true, treats string parameter as regex." } |
564 ], | 564 ], |
565 "returns": [ | 565 "returns": [ |
566 { "name": "result", "type": "array", "items": { "$ref": "Sea
rchMatch" }, "description": "List of search matches." } | 566 { "name": "result", "type": "array", "items": { "$ref": "Sea
rchMatch" }, "description": "List of search matches." } |
567 ], | 567 ], |
568 "description": "Searches for given string in script content." | 568 "description": "Searches for given string in script content." |
569 }, | 569 }, |
570 { | 570 { |
571 "name": "canSetScriptSource", | |
572 "returns": [ | |
573 { "name": "result", "type": "boolean", "description": "True
if <code>setScriptSource</code> is supported." } | |
574 ], | |
575 "description": "Always returns true." | |
576 }, | |
577 { | |
578 "name": "setScriptSource", | 571 "name": "setScriptSource", |
579 "parameters": [ | 572 "parameters": [ |
580 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script to edit." }, | 573 { "name": "scriptId", "$ref": "Runtime.ScriptId", "descripti
on": "Id of the script to edit." }, |
581 { "name": "scriptSource", "type": "string", "description": "
New content of the script." }, | 574 { "name": "scriptSource", "type": "string", "description": "
New content of the script." }, |
582 { "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.", "exper
imental": true } | 575 { "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.", "exper
imental": true } |
583 ], | 576 ], |
584 "returns": [ | 577 "returns": [ |
585 { "name": "callFrames", "type": "array", "optional": true, "
items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing
has happened while VM was stopped." }, | 578 { "name": "callFrames", "type": "array", "optional": true, "
items": { "$ref": "CallFrame" }, "description": "New stack trace in case editing
has happened while VM was stopped." }, |
586 { "name": "stackChanged", "type": "boolean", "optional": tru
e, "description": "Whether current call stack was modified after applying the c
hanges.", "experimental": true }, | 579 { "name": "stackChanged", "type": "boolean", "optional": tru
e, "description": "Whether current call stack was modified after applying the c
hanges.", "experimental": true }, |
587 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any.", "experimental": tr
ue }, | 580 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any.", "experimental": tr
ue }, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
641 "parameters": [ | 634 "parameters": [ |
642 { "name": "scopeNumber", "type": "integer", "description": "
0-based number of scope as was listed in scope chain. Only 'local', 'closure' an
d 'catch' scope types are allowed. Other scopes could be manipulated manually."
}, | 635 { "name": "scopeNumber", "type": "integer", "description": "
0-based number of scope as was listed in scope chain. Only 'local', 'closure' an
d 'catch' scope types are allowed. Other scopes could be manipulated manually."
}, |
643 { "name": "variableName", "type": "string", "description": "
Variable name." }, | 636 { "name": "variableName", "type": "string", "description": "
Variable name." }, |
644 { "name": "newValue", "$ref": "Runtime.CallArgument", "descr
iption": "New variable value." }, | 637 { "name": "newValue", "$ref": "Runtime.CallArgument", "descr
iption": "New variable value." }, |
645 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Id of callframe that holds variable." } | 638 { "name": "callFrameId", "$ref": "CallFrameId", "description
": "Id of callframe that holds variable." } |
646 ], | 639 ], |
647 "experimental": true, | 640 "experimental": true, |
648 "description": "Changes value of variable in a callframe. Object
-based scopes are not supported and must be mutated manually." | 641 "description": "Changes value of variable in a callframe. Object
-based scopes are not supported and must be mutated manually." |
649 }, | 642 }, |
650 { | 643 { |
651 "name": "getBacktrace", | |
652 "returns": [ | |
653 { "name": "callFrames", "type": "array", "items": { "$ref":
"CallFrame" }, "description": "Call stack the virtual machine stopped on." }, | |
654 { "name": "asyncStackTrace", "$ref": "Runtime.StackTrace", "
optional": true, "description": "Async stack trace, if any." } | |
655 ], | |
656 "experimental": true, | |
657 "description": "Returns call stack including variables changed s
ince VM was paused. VM must be paused." | |
658 }, | |
659 { | |
660 "name": "setAsyncCallStackDepth", | 644 "name": "setAsyncCallStackDepth", |
661 "parameters": [ | 645 "parameters": [ |
662 { "name": "maxDepth", "type": "integer", "description": "Max
imum depth of async call stacks. Setting to <code>0</code> will effectively disa
ble collecting async call stacks (default)." } | 646 { "name": "maxDepth", "type": "integer", "description": "Max
imum depth of async call stacks. Setting to <code>0</code> will effectively disa
ble collecting async call stacks (default)." } |
663 ], | 647 ], |
664 "experimental": true, | 648 "experimental": true, |
665 "description": "Enables or disables async call stacks tracking." | 649 "description": "Enables or disables async call stacks tracking." |
666 }, | 650 }, |
667 { | 651 { |
668 "name": "setBlackboxPatterns", | 652 "name": "setBlackboxPatterns", |
669 "parameters": [ | 653 "parameters": [ |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 { | 999 { |
1016 "name": "heapStatsUpdate", | 1000 "name": "heapStatsUpdate", |
1017 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", | 1001 "description": "If heap objects tracking has been started then b
ackend may send update for one or more fragments", |
1018 "parameters": [ | 1002 "parameters": [ |
1019 { "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."} | 1003 { "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."} |
1020 ] | 1004 ] |
1021 } | 1005 } |
1022 ] | 1006 ] |
1023 }] | 1007 }] |
1024 } | 1008 } |
OLD | NEW |