OLD | NEW |
(Empty) | |
| 1 { |
| 2 "domain": "Debugger", |
| 3 "version": { |
| 4 "major": "1", |
| 5 "minor": "1" |
| 6 }, |
| 7 "description": "Debugger domain exposes JavaScript debugging capabilities. I
t allows setting and removing breakpoints, stepping through execution, exploring
stack traces, etc.", |
| 8 "dependencies": [ |
| 9 "Runtime" |
| 10 ], |
| 11 "types": [ |
| 12 { |
| 13 "id": "BreakpointId", |
| 14 "type": "string", |
| 15 "description": "Breakpoint identifier." |
| 16 }, |
| 17 { |
| 18 "id": "CallFrameId", |
| 19 "type": "string", |
| 20 "description": "Call frame identifier." |
| 21 }, |
| 22 { |
| 23 "id": "Location", |
| 24 "type": "object", |
| 25 "properties": [ |
| 26 { |
| 27 "name": "scriptId", |
| 28 "$ref": "Runtime.ScriptId", |
| 29 "description": "Script identifier as reported in the <code>D
ebugger.scriptParsed</code>." |
| 30 }, |
| 31 { |
| 32 "name": "lineNumber", |
| 33 "type": "integer", |
| 34 "description": "Line number in the script (0-based)." |
| 35 }, |
| 36 { |
| 37 "name": "columnNumber", |
| 38 "type": "integer", |
| 39 "optional": true, |
| 40 "description": "Column number in the script (0-based)." |
| 41 } |
| 42 ], |
| 43 "description": "Location in the source code." |
| 44 }, |
| 45 { |
| 46 "id": "ScriptPosition", |
| 47 "hidden": true, |
| 48 "type": "object", |
| 49 "properties": [ |
| 50 { |
| 51 "name": "line", |
| 52 "type": "integer" |
| 53 }, |
| 54 { |
| 55 "name": "column", |
| 56 "type": "integer" |
| 57 } |
| 58 ], |
| 59 "description": "Location in the source code." |
| 60 }, |
| 61 { |
| 62 "id": "FunctionDetails", |
| 63 "hidden": true, |
| 64 "type": "object", |
| 65 "properties": [ |
| 66 { |
| 67 "name": "location", |
| 68 "$ref": "Location", |
| 69 "optional": true, |
| 70 "description": "Location of the function, none for native fu
nctions." |
| 71 }, |
| 72 { |
| 73 "name": "functionName", |
| 74 "type": "string", |
| 75 "description": "Name of the function." |
| 76 }, |
| 77 { |
| 78 "name": "isGenerator", |
| 79 "type": "boolean", |
| 80 "description": "Whether this is a generator function." |
| 81 }, |
| 82 { |
| 83 "name": "scopeChain", |
| 84 "type": "array", |
| 85 "optional": true, |
| 86 "items": { |
| 87 "$ref": "Scope" |
| 88 }, |
| 89 "description": "Scope chain for this closure." |
| 90 } |
| 91 ], |
| 92 "description": "Information about the function." |
| 93 }, |
| 94 { |
| 95 "id": "GeneratorObjectDetails", |
| 96 "hidden": true, |
| 97 "type": "object", |
| 98 "properties": [ |
| 99 { |
| 100 "name": "function", |
| 101 "$ref": "Runtime.RemoteObject", |
| 102 "description": "Generator function." |
| 103 }, |
| 104 { |
| 105 "name": "functionName", |
| 106 "type": "string", |
| 107 "description": "Name of the generator function." |
| 108 }, |
| 109 { |
| 110 "name": "status", |
| 111 "type": "string", |
| 112 "enum": [ |
| 113 "running", |
| 114 "suspended", |
| 115 "closed" |
| 116 ], |
| 117 "description": "Current generator object status." |
| 118 }, |
| 119 { |
| 120 "name": "location", |
| 121 "$ref": "Location", |
| 122 "optional": true, |
| 123 "description": "If suspended, location where generator funct
ion was suspended (e.g. location of the last 'yield'). Otherwise, location of th
e generator function." |
| 124 } |
| 125 ], |
| 126 "description": "Information about the generator object." |
| 127 }, |
| 128 { |
| 129 "id": "CollectionEntry", |
| 130 "hidden": true, |
| 131 "type": "object", |
| 132 "properties": [ |
| 133 { |
| 134 "name": "key", |
| 135 "$ref": "Runtime.RemoteObject", |
| 136 "optional": true, |
| 137 "description": "Entry key of a map-like collection, otherwis
e not provided." |
| 138 }, |
| 139 { |
| 140 "name": "value", |
| 141 "$ref": "Runtime.RemoteObject", |
| 142 "description": "Entry value." |
| 143 } |
| 144 ], |
| 145 "description": "Collection entry." |
| 146 }, |
| 147 { |
| 148 "id": "CallFrame", |
| 149 "type": "object", |
| 150 "properties": [ |
| 151 { |
| 152 "name": "callFrameId", |
| 153 "$ref": "CallFrameId", |
| 154 "description": "Call frame identifier. This identifier is on
ly valid while the virtual machine is paused." |
| 155 }, |
| 156 { |
| 157 "name": "functionName", |
| 158 "type": "string", |
| 159 "description": "Name of the JavaScript function called on th
is call frame." |
| 160 }, |
| 161 { |
| 162 "name": "functionLocation", |
| 163 "$ref": "Location", |
| 164 "optional": true, |
| 165 "hidden": true, |
| 166 "description": "Location in the source code." |
| 167 }, |
| 168 { |
| 169 "name": "location", |
| 170 "$ref": "Location", |
| 171 "description": "Location in the source code." |
| 172 }, |
| 173 { |
| 174 "name": "scopeChain", |
| 175 "type": "array", |
| 176 "items": { |
| 177 "$ref": "Scope" |
| 178 }, |
| 179 "description": "Scope chain for this call frame." |
| 180 }, |
| 181 { |
| 182 "name": "this", |
| 183 "$ref": "Runtime.RemoteObject", |
| 184 "description": "<code>this</code> object for this call frame
." |
| 185 }, |
| 186 { |
| 187 "name": "returnValue", |
| 188 "$ref": "Runtime.RemoteObject", |
| 189 "optional": true, |
| 190 "hidden": true, |
| 191 "description": "The value being returned, if the function is
at return point." |
| 192 } |
| 193 ], |
| 194 "description": "JavaScript call frame. Array of call frames form the
call stack." |
| 195 }, |
| 196 { |
| 197 "id": "Scope", |
| 198 "type": "object", |
| 199 "properties": [ |
| 200 { |
| 201 "name": "type", |
| 202 "type": "string", |
| 203 "enum": [ |
| 204 "global", |
| 205 "local", |
| 206 "with", |
| 207 "closure", |
| 208 "catch", |
| 209 "block", |
| 210 "script" |
| 211 ], |
| 212 "description": "Scope type." |
| 213 }, |
| 214 { |
| 215 "name": "object", |
| 216 "$ref": "Runtime.RemoteObject", |
| 217 "description": "Object representing the scope. For <code>glo
bal</code> and <code>with</code> scopes it represents the actual object; for the
rest of the scopes, it is artificial transient object enumerating scope variabl
es as its properties." |
| 218 }, |
| 219 { |
| 220 "name": "name", |
| 221 "type": "string", |
| 222 "optional": true, |
| 223 "hidden": true |
| 224 }, |
| 225 { |
| 226 "name": "startLocation", |
| 227 "$ref": "Location", |
| 228 "optional": true, |
| 229 "hidden": true, |
| 230 "description": "Location in the source code where scope star
ts" |
| 231 }, |
| 232 { |
| 233 "name": "endLocation", |
| 234 "$ref": "Location", |
| 235 "optional": true, |
| 236 "hidden": true, |
| 237 "description": "Location in the source code where scope ends
" |
| 238 } |
| 239 ], |
| 240 "description": "Scope description." |
| 241 }, |
| 242 { |
| 243 "id": "SetScriptSourceError", |
| 244 "type": "object", |
| 245 "properties": [ |
| 246 { |
| 247 "name": "message", |
| 248 "type": "string", |
| 249 "description": "Compiler error message" |
| 250 }, |
| 251 { |
| 252 "name": "lineNumber", |
| 253 "type": "integer", |
| 254 "description": "Compile error line number (1-based)" |
| 255 }, |
| 256 { |
| 257 "name": "columnNumber", |
| 258 "type": "integer", |
| 259 "description": "Compile error column number (1-based)" |
| 260 } |
| 261 ], |
| 262 "description": "Error data for setScriptSource command. Contains unc
ompilable script source error.", |
| 263 "hidden": true |
| 264 }, |
| 265 { |
| 266 "id": "SearchMatch", |
| 267 "type": "object", |
| 268 "description": "Search match for resource.", |
| 269 "properties": [ |
| 270 { |
| 271 "name": "lineNumber", |
| 272 "type": "number", |
| 273 "description": "Line number in resource content." |
| 274 }, |
| 275 { |
| 276 "name": "lineContent", |
| 277 "type": "string", |
| 278 "description": "Line with match content." |
| 279 } |
| 280 ], |
| 281 "hidden": true |
| 282 } |
| 283 ], |
| 284 "commands": [ |
| 285 { |
| 286 "name": "enable", |
| 287 "description": "Enables debugger for the given page. Clients should
not assume that the debugging has been enabled until the result for this command
is received." |
| 288 }, |
| 289 { |
| 290 "name": "disable", |
| 291 "description": "Disables debugger for given page." |
| 292 }, |
| 293 { |
| 294 "name": "setBreakpointsActive", |
| 295 "parameters": [ |
| 296 { |
| 297 "name": "active", |
| 298 "type": "boolean", |
| 299 "description": "New value for breakpoints active state." |
| 300 } |
| 301 ], |
| 302 "description": "Activates / deactivates all breakpoints on the page.
" |
| 303 }, |
| 304 { |
| 305 "name": "setSkipAllPauses", |
| 306 "hidden": true, |
| 307 "parameters": [ |
| 308 { |
| 309 "name": "skipped", |
| 310 "type": "boolean", |
| 311 "description": "New value for skip pauses state." |
| 312 } |
| 313 ], |
| 314 "description": "Makes page not interrupt on any pauses (breakpoint,
exception, dom exception etc)." |
| 315 }, |
| 316 { |
| 317 "name": "setBreakpointByUrl", |
| 318 "parameters": [ |
| 319 { |
| 320 "name": "lineNumber", |
| 321 "type": "integer", |
| 322 "description": "Line number to set breakpoint at." |
| 323 }, |
| 324 { |
| 325 "name": "url", |
| 326 "type": "string", |
| 327 "optional": true, |
| 328 "description": "URL of the resources to set breakpoint on." |
| 329 }, |
| 330 { |
| 331 "name": "urlRegex", |
| 332 "type": "string", |
| 333 "optional": true, |
| 334 "description": "Regex pattern for the URLs of the resources
to set breakpoints on. Either <code>url</code> or <code>urlRegex</code> must be
specified." |
| 335 }, |
| 336 { |
| 337 "name": "columnNumber", |
| 338 "type": "integer", |
| 339 "optional": true, |
| 340 "description": "Offset in the line to set breakpoint at." |
| 341 }, |
| 342 { |
| 343 "name": "condition", |
| 344 "type": "string", |
| 345 "optional": true, |
| 346 "description": "Expression to use as a breakpoint condition.
When specified, debugger will only stop on the breakpoint if this expression ev
aluates to true." |
| 347 } |
| 348 ], |
| 349 "returns": [ |
| 350 { |
| 351 "name": "breakpointId", |
| 352 "$ref": "BreakpointId", |
| 353 "description": "Id of the created breakpoint for further ref
erence." |
| 354 }, |
| 355 { |
| 356 "name": "locations", |
| 357 "type": "array", |
| 358 "items": { |
| 359 "$ref": "Location" |
| 360 }, |
| 361 "description": "List of the locations this breakpoint resolv
ed into upon addition." |
| 362 } |
| 363 ], |
| 364 "description": "Sets JavaScript breakpoint at given location specifi
ed either by URL or URL regex. Once this command is issued, all existing parsed
scripts will have breakpoints resolved and returned in <code>locations</code> pr
operty. Further matching script parsing will result in subsequent <code>breakpoi
ntResolved</code> events issued. This logical breakpoint will survive page reloa
ds." |
| 365 }, |
| 366 { |
| 367 "name": "setBreakpoint", |
| 368 "parameters": [ |
| 369 { |
| 370 "name": "location", |
| 371 "$ref": "Location", |
| 372 "description": "Location to set breakpoint in." |
| 373 }, |
| 374 { |
| 375 "name": "condition", |
| 376 "type": "string", |
| 377 "optional": true, |
| 378 "description": "Expression to use as a breakpoint condition.
When specified, debugger will only stop on the breakpoint if this expression ev
aluates to true." |
| 379 } |
| 380 ], |
| 381 "returns": [ |
| 382 { |
| 383 "name": "breakpointId", |
| 384 "$ref": "BreakpointId", |
| 385 "description": "Id of the created breakpoint for further ref
erence." |
| 386 }, |
| 387 { |
| 388 "name": "actualLocation", |
| 389 "$ref": "Location", |
| 390 "description": "Location this breakpoint resolved into." |
| 391 } |
| 392 ], |
| 393 "description": "Sets JavaScript breakpoint at a given location." |
| 394 }, |
| 395 { |
| 396 "name": "removeBreakpoint", |
| 397 "parameters": [ |
| 398 { |
| 399 "name": "breakpointId", |
| 400 "$ref": "BreakpointId" |
| 401 } |
| 402 ], |
| 403 "description": "Removes JavaScript breakpoint." |
| 404 }, |
| 405 { |
| 406 "name": "continueToLocation", |
| 407 "parameters": [ |
| 408 { |
| 409 "name": "location", |
| 410 "$ref": "Location", |
| 411 "description": "Location to continue to." |
| 412 }, |
| 413 { |
| 414 "name": "interstatementLocation", |
| 415 "type": "boolean", |
| 416 "optional": true, |
| 417 "hidden": true, |
| 418 "description": "Allows breakpoints at the intemediate positi
ons inside statements." |
| 419 } |
| 420 ], |
| 421 "description": "Continues execution until specific location is reach
ed." |
| 422 }, |
| 423 { |
| 424 "name": "stepOver", |
| 425 "description": "Steps over the statement." |
| 426 }, |
| 427 { |
| 428 "name": "stepInto", |
| 429 "description": "Steps into the function call." |
| 430 }, |
| 431 { |
| 432 "name": "stepOut", |
| 433 "description": "Steps out of the function call." |
| 434 }, |
| 435 { |
| 436 "name": "pause", |
| 437 "description": "Stops on the next JavaScript statement." |
| 438 }, |
| 439 { |
| 440 "name": "resume", |
| 441 "description": "Resumes JavaScript execution." |
| 442 }, |
| 443 { |
| 444 "name": "searchInContent", |
| 445 "parameters": [ |
| 446 { |
| 447 "name": "scriptId", |
| 448 "$ref": "Runtime.ScriptId", |
| 449 "description": "Id of the script to search in." |
| 450 }, |
| 451 { |
| 452 "name": "query", |
| 453 "type": "string", |
| 454 "description": "String to search for." |
| 455 }, |
| 456 { |
| 457 "name": "caseSensitive", |
| 458 "type": "boolean", |
| 459 "optional": true, |
| 460 "description": "If true, search is case sensitive." |
| 461 }, |
| 462 { |
| 463 "name": "isRegex", |
| 464 "type": "boolean", |
| 465 "optional": true, |
| 466 "description": "If true, treats string parameter as regex." |
| 467 } |
| 468 ], |
| 469 "returns": [ |
| 470 { |
| 471 "name": "result", |
| 472 "type": "array", |
| 473 "items": { |
| 474 "$ref": "SearchMatch" |
| 475 }, |
| 476 "description": "List of search matches." |
| 477 } |
| 478 ], |
| 479 "description": "Searches for given string in script content." |
| 480 }, |
| 481 { |
| 482 "name": "canSetScriptSource", |
| 483 "returns": [ |
| 484 { |
| 485 "name": "result", |
| 486 "type": "boolean", |
| 487 "description": "True if <code>setScriptSource</code> is supp
orted." |
| 488 } |
| 489 ], |
| 490 "description": "Always returns true." |
| 491 }, |
| 492 { |
| 493 "name": "setScriptSource", |
| 494 "parameters": [ |
| 495 { |
| 496 "name": "scriptId", |
| 497 "$ref": "Runtime.ScriptId", |
| 498 "description": "Id of the script to edit." |
| 499 }, |
| 500 { |
| 501 "name": "scriptSource", |
| 502 "type": "string", |
| 503 "description": "New content of the script." |
| 504 }, |
| 505 { |
| 506 "name": "preview", |
| 507 "type": "boolean", |
| 508 "optional": true, |
| 509 "description": " If true the change will not actually be app
lied. Preview mode may be used to get result description without actually modify
ing the code.", |
| 510 "hidden": true |
| 511 } |
| 512 ], |
| 513 "returns": [ |
| 514 { |
| 515 "name": "callFrames", |
| 516 "type": "array", |
| 517 "optional": true, |
| 518 "items": { |
| 519 "$ref": "CallFrame" |
| 520 }, |
| 521 "description": "New stack trace in case editing has happened
while VM was stopped." |
| 522 }, |
| 523 { |
| 524 "name": "stackChanged", |
| 525 "type": "boolean", |
| 526 "optional": true, |
| 527 "description": "Whether current call stack was modified aft
er applying the changes.", |
| 528 "hidden": true |
| 529 }, |
| 530 { |
| 531 "name": "asyncStackTrace", |
| 532 "$ref": "Runtime.StackTrace", |
| 533 "optional": true, |
| 534 "description": "Async stack trace, if any.", |
| 535 "hidden": true |
| 536 }, |
| 537 { |
| 538 "name": "compileError", |
| 539 "optional": true, |
| 540 "$ref": "SetScriptSourceError", |
| 541 "description": "Error data if any." |
| 542 } |
| 543 ], |
| 544 "description": "Edits JavaScript source live." |
| 545 }, |
| 546 { |
| 547 "name": "restartFrame", |
| 548 "parameters": [ |
| 549 { |
| 550 "name": "callFrameId", |
| 551 "$ref": "CallFrameId", |
| 552 "description": "Call frame identifier to evaluate on." |
| 553 } |
| 554 ], |
| 555 "returns": [ |
| 556 { |
| 557 "name": "callFrames", |
| 558 "type": "array", |
| 559 "items": { |
| 560 "$ref": "CallFrame" |
| 561 }, |
| 562 "description": "New stack trace." |
| 563 }, |
| 564 { |
| 565 "name": "asyncStackTrace", |
| 566 "$ref": "Runtime.StackTrace", |
| 567 "optional": true, |
| 568 "description": "Async stack trace, if any." |
| 569 } |
| 570 ], |
| 571 "hidden": true, |
| 572 "description": "Restarts particular call frame from the beginning." |
| 573 }, |
| 574 { |
| 575 "name": "getScriptSource", |
| 576 "parameters": [ |
| 577 { |
| 578 "name": "scriptId", |
| 579 "$ref": "Runtime.ScriptId", |
| 580 "description": "Id of the script to get source for." |
| 581 } |
| 582 ], |
| 583 "returns": [ |
| 584 { |
| 585 "name": "scriptSource", |
| 586 "type": "string", |
| 587 "description": "Script source." |
| 588 } |
| 589 ], |
| 590 "description": "Returns source for the script with given id." |
| 591 }, |
| 592 { |
| 593 "name": "getFunctionDetails", |
| 594 "hidden": true, |
| 595 "parameters": [ |
| 596 { |
| 597 "name": "functionId", |
| 598 "$ref": "Runtime.RemoteObjectId", |
| 599 "description": "Id of the function to get details for." |
| 600 } |
| 601 ], |
| 602 "returns": [ |
| 603 { |
| 604 "name": "details", |
| 605 "$ref": "FunctionDetails", |
| 606 "description": "Information about the function." |
| 607 } |
| 608 ], |
| 609 "description": "Returns detailed information on given function." |
| 610 }, |
| 611 { |
| 612 "name": "getGeneratorObjectDetails", |
| 613 "hidden": true, |
| 614 "parameters": [ |
| 615 { |
| 616 "name": "objectId", |
| 617 "$ref": "Runtime.RemoteObjectId", |
| 618 "description": "Id of the generator object to get details fo
r." |
| 619 } |
| 620 ], |
| 621 "returns": [ |
| 622 { |
| 623 "name": "details", |
| 624 "$ref": "GeneratorObjectDetails", |
| 625 "description": "Information about the generator object." |
| 626 } |
| 627 ], |
| 628 "description": "Returns detailed information on given generator obje
ct." |
| 629 }, |
| 630 { |
| 631 "name": "getCollectionEntries", |
| 632 "hidden": true, |
| 633 "parameters": [ |
| 634 { |
| 635 "name": "objectId", |
| 636 "$ref": "Runtime.RemoteObjectId", |
| 637 "description": "Id of the collection to get entries for." |
| 638 } |
| 639 ], |
| 640 "returns": [ |
| 641 { |
| 642 "name": "entries", |
| 643 "type": "array", |
| 644 "items": { |
| 645 "$ref": "CollectionEntry" |
| 646 }, |
| 647 "description": "Array of collection entries." |
| 648 } |
| 649 ], |
| 650 "description": "Returns entries of given collection." |
| 651 }, |
| 652 { |
| 653 "name": "setPauseOnExceptions", |
| 654 "parameters": [ |
| 655 { |
| 656 "name": "state", |
| 657 "type": "string", |
| 658 "enum": [ |
| 659 "none", |
| 660 "uncaught", |
| 661 "all" |
| 662 ], |
| 663 "description": "Pause on exceptions mode." |
| 664 } |
| 665 ], |
| 666 "description": "Defines pause on exceptions state. Can be set to sto
p on all exceptions, uncaught exceptions or no exceptions. Initial pause on exce
ptions state is <code>none</code>." |
| 667 }, |
| 668 { |
| 669 "name": "evaluateOnCallFrame", |
| 670 "parameters": [ |
| 671 { |
| 672 "name": "callFrameId", |
| 673 "$ref": "CallFrameId", |
| 674 "description": "Call frame identifier to evaluate on." |
| 675 }, |
| 676 { |
| 677 "name": "expression", |
| 678 "type": "string", |
| 679 "description": "Expression to evaluate." |
| 680 }, |
| 681 { |
| 682 "name": "objectGroup", |
| 683 "type": "string", |
| 684 "optional": true, |
| 685 "description": "String object group name to put result into
(allows rapid releasing resulting object handles using <code>releaseObjectGroup<
/code>)." |
| 686 }, |
| 687 { |
| 688 "name": "includeCommandLineAPI", |
| 689 "type": "boolean", |
| 690 "optional": true, |
| 691 "description": "Specifies whether command line API should be
available to the evaluated expression, defaults to false.", |
| 692 "hidden": true |
| 693 }, |
| 694 { |
| 695 "name": "doNotPauseOnExceptionsAndMuteConsole", |
| 696 "type": "boolean", |
| 697 "optional": true, |
| 698 "description": "Specifies whether evaluation should stop on
exceptions and mute console. Overrides setPauseOnException state.", |
| 699 "hidden": true |
| 700 }, |
| 701 { |
| 702 "name": "returnByValue", |
| 703 "type": "boolean", |
| 704 "optional": true, |
| 705 "description": "Whether the result is expected to be a JSON
object that should be sent by value." |
| 706 }, |
| 707 { |
| 708 "name": "generatePreview", |
| 709 "type": "boolean", |
| 710 "optional": true, |
| 711 "hidden": true, |
| 712 "description": "Whether preview should be generated for the
result." |
| 713 } |
| 714 ], |
| 715 "returns": [ |
| 716 { |
| 717 "name": "result", |
| 718 "$ref": "Runtime.RemoteObject", |
| 719 "description": "Object wrapper for the evaluation result." |
| 720 }, |
| 721 { |
| 722 "name": "wasThrown", |
| 723 "type": "boolean", |
| 724 "optional": true, |
| 725 "description": "True if the result was thrown during the eva
luation." |
| 726 }, |
| 727 { |
| 728 "name": "exceptionDetails", |
| 729 "$ref": "Runtime.ExceptionDetails", |
| 730 "optional": true, |
| 731 "hidden": true, |
| 732 "description": "Exception details." |
| 733 } |
| 734 ], |
| 735 "description": "Evaluates expression on a given call frame." |
| 736 }, |
| 737 { |
| 738 "name": "setVariableValue", |
| 739 "parameters": [ |
| 740 { |
| 741 "name": "scopeNumber", |
| 742 "type": "integer", |
| 743 "description": "0-based number of scope as was listed in sco
pe chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other sco
pes could be manipulated manually." |
| 744 }, |
| 745 { |
| 746 "name": "variableName", |
| 747 "type": "string", |
| 748 "description": "Variable name." |
| 749 }, |
| 750 { |
| 751 "name": "newValue", |
| 752 "$ref": "Runtime.CallArgument", |
| 753 "description": "New variable value." |
| 754 }, |
| 755 { |
| 756 "name": "callFrameId", |
| 757 "$ref": "CallFrameId", |
| 758 "description": "Id of callframe that holds variable." |
| 759 } |
| 760 ], |
| 761 "hidden": true, |
| 762 "description": "Changes value of variable in a callframe. Object-bas
ed scopes are not supported and must be mutated manually." |
| 763 }, |
| 764 { |
| 765 "name": "getBacktrace", |
| 766 "returns": [ |
| 767 { |
| 768 "name": "callFrames", |
| 769 "type": "array", |
| 770 "items": { |
| 771 "$ref": "CallFrame" |
| 772 }, |
| 773 "description": "Call stack the virtual machine stopped on." |
| 774 }, |
| 775 { |
| 776 "name": "asyncStackTrace", |
| 777 "$ref": "Runtime.StackTrace", |
| 778 "optional": true, |
| 779 "description": "Async stack trace, if any." |
| 780 } |
| 781 ], |
| 782 "hidden": true, |
| 783 "description": "Returns call stack including variables changed since
VM was paused. VM must be paused." |
| 784 }, |
| 785 { |
| 786 "name": "setAsyncCallStackDepth", |
| 787 "parameters": [ |
| 788 { |
| 789 "name": "maxDepth", |
| 790 "type": "integer", |
| 791 "description": "Maximum depth of async call stacks. Setting
to <code>0</code> will effectively disable collecting async call stacks (default
)." |
| 792 } |
| 793 ], |
| 794 "hidden": true, |
| 795 "description": "Enables or disables async call stacks tracking." |
| 796 }, |
| 797 { |
| 798 "name": "setBlackboxPatterns", |
| 799 "parameters": [ |
| 800 { |
| 801 "name": "patterns", |
| 802 "type": "array", |
| 803 "items": { |
| 804 "type": "string" |
| 805 }, |
| 806 "description": "Array of regexps that will be used to check
script url for blackbox state." |
| 807 } |
| 808 ], |
| 809 "hidden": true, |
| 810 "description": "Replace previous blackbox patterns with passed ones.
Forces backend to skip stepping/pausing in scripts with url matching one of the
patterns. VM will try to leave blackboxed script by performing 'step in' severa
l times, finally resorting to 'step out' if unsuccessful." |
| 811 }, |
| 812 { |
| 813 "name": "setBlackboxedRanges", |
| 814 "parameters": [ |
| 815 { |
| 816 "name": "scriptId", |
| 817 "$ref": "Runtime.ScriptId", |
| 818 "description": "Id of the script." |
| 819 }, |
| 820 { |
| 821 "name": "positions", |
| 822 "type": "array", |
| 823 "items": { |
| 824 "$ref": "ScriptPosition" |
| 825 } |
| 826 } |
| 827 ], |
| 828 "hidden": true, |
| 829 "description": "Makes backend skip steps in the script in blackboxed
ranges. VM will try leave blacklisted scripts by performing 'step in' several t
imes, finally resorting to 'step out' if unsuccessful. Positions array contains
positions where blackbox state is changed. First interval isn't blackboxed. Arra
y should be sorted." |
| 830 } |
| 831 ], |
| 832 "events": [ |
| 833 { |
| 834 "name": "scriptParsed", |
| 835 "parameters": [ |
| 836 { |
| 837 "name": "scriptId", |
| 838 "$ref": "Runtime.ScriptId", |
| 839 "description": "Identifier of the script parsed." |
| 840 }, |
| 841 { |
| 842 "name": "url", |
| 843 "type": "string", |
| 844 "description": "URL or name of the script parsed (if any)." |
| 845 }, |
| 846 { |
| 847 "name": "startLine", |
| 848 "type": "integer", |
| 849 "description": "Line offset of the script within the resourc
e with given URL (for script tags)." |
| 850 }, |
| 851 { |
| 852 "name": "startColumn", |
| 853 "type": "integer", |
| 854 "description": "Column offset of the script within the resou
rce with given URL." |
| 855 }, |
| 856 { |
| 857 "name": "endLine", |
| 858 "type": "integer", |
| 859 "description": "Last line of the script." |
| 860 }, |
| 861 { |
| 862 "name": "endColumn", |
| 863 "type": "integer", |
| 864 "description": "Length of the last line of the script." |
| 865 }, |
| 866 { |
| 867 "name": "executionContextId", |
| 868 "$ref": "Runtime.ExecutionContextId", |
| 869 "description": "Specifies script creation context.", |
| 870 "hidden": true |
| 871 }, |
| 872 { |
| 873 "name": "hash", |
| 874 "type": "string", |
| 875 "hidden": true, |
| 876 "description": "Content hash of the script." |
| 877 }, |
| 878 { |
| 879 "name": "isContentScript", |
| 880 "type": "boolean", |
| 881 "optional": true, |
| 882 "description": "Determines whether this script is a user ext
ension script." |
| 883 }, |
| 884 { |
| 885 "name": "isInternalScript", |
| 886 "type": "boolean", |
| 887 "optional": true, |
| 888 "description": "Determines whether this script is an interna
l script.", |
| 889 "hidden": true |
| 890 }, |
| 891 { |
| 892 "name": "isLiveEdit", |
| 893 "type": "boolean", |
| 894 "optional": true, |
| 895 "description": "True, if this script is generated as a resul
t of the live edit operation.", |
| 896 "hidden": true |
| 897 }, |
| 898 { |
| 899 "name": "sourceMapURL", |
| 900 "type": "string", |
| 901 "optional": true, |
| 902 "description": "URL of source map associated with script (if
any)." |
| 903 }, |
| 904 { |
| 905 "name": "hasSourceURL", |
| 906 "type": "boolean", |
| 907 "optional": true, |
| 908 "description": "True, if this script has sourceURL.", |
| 909 "hidden": true |
| 910 }, |
| 911 { |
| 912 "name": "deprecatedCommentWasUsed", |
| 913 "type": "boolean", |
| 914 "optional": true, |
| 915 "hidden": true, |
| 916 "description": "True, if '//@ sourceURL' or '//@ sourceMappi
ngURL' was used." |
| 917 } |
| 918 ], |
| 919 "description": "Fired when virtual machine parses script. This event
is also fired for all known and uncollected scripts upon enabling debugger." |
| 920 }, |
| 921 { |
| 922 "name": "scriptFailedToParse", |
| 923 "parameters": [ |
| 924 { |
| 925 "name": "scriptId", |
| 926 "$ref": "Runtime.ScriptId", |
| 927 "description": "Identifier of the script parsed." |
| 928 }, |
| 929 { |
| 930 "name": "url", |
| 931 "type": "string", |
| 932 "description": "URL or name of the script parsed (if any)." |
| 933 }, |
| 934 { |
| 935 "name": "startLine", |
| 936 "type": "integer", |
| 937 "description": "Line offset of the script within the resourc
e with given URL (for script tags)." |
| 938 }, |
| 939 { |
| 940 "name": "startColumn", |
| 941 "type": "integer", |
| 942 "description": "Column offset of the script within the resou
rce with given URL." |
| 943 }, |
| 944 { |
| 945 "name": "endLine", |
| 946 "type": "integer", |
| 947 "description": "Last line of the script." |
| 948 }, |
| 949 { |
| 950 "name": "endColumn", |
| 951 "type": "integer", |
| 952 "description": "Length of the last line of the script." |
| 953 }, |
| 954 { |
| 955 "name": "executionContextId", |
| 956 "$ref": "Runtime.ExecutionContextId", |
| 957 "description": "Specifies script creation context.", |
| 958 "hidden": true |
| 959 }, |
| 960 { |
| 961 "name": "hash", |
| 962 "type": "string", |
| 963 "hidden": true, |
| 964 "description": "Content hash of the script." |
| 965 }, |
| 966 { |
| 967 "name": "isContentScript", |
| 968 "type": "boolean", |
| 969 "optional": true, |
| 970 "description": "Determines whether this script is a user ext
ension script." |
| 971 }, |
| 972 { |
| 973 "name": "isInternalScript", |
| 974 "type": "boolean", |
| 975 "optional": true, |
| 976 "description": "Determines whether this script is an interna
l script.", |
| 977 "hidden": true |
| 978 }, |
| 979 { |
| 980 "name": "sourceMapURL", |
| 981 "type": "string", |
| 982 "optional": true, |
| 983 "description": "URL of source map associated with script (if
any)." |
| 984 }, |
| 985 { |
| 986 "name": "hasSourceURL", |
| 987 "type": "boolean", |
| 988 "optional": true, |
| 989 "description": "True, if this script has sourceURL.", |
| 990 "hidden": true |
| 991 }, |
| 992 { |
| 993 "name": "deprecatedCommentWasUsed", |
| 994 "type": "boolean", |
| 995 "optional": true, |
| 996 "hidden": true, |
| 997 "description": "True, if '//@ sourceURL' or '//@ sourceMappi
ngURL' was used." |
| 998 } |
| 999 ], |
| 1000 "description": "Fired when virtual machine fails to parse the script
." |
| 1001 }, |
| 1002 { |
| 1003 "name": "breakpointResolved", |
| 1004 "parameters": [ |
| 1005 { |
| 1006 "name": "breakpointId", |
| 1007 "$ref": "BreakpointId", |
| 1008 "description": "Breakpoint unique identifier." |
| 1009 }, |
| 1010 { |
| 1011 "name": "location", |
| 1012 "$ref": "Location", |
| 1013 "description": "Actual breakpoint location." |
| 1014 } |
| 1015 ], |
| 1016 "description": "Fired when breakpoint is resolved to an actual scrip
t and location." |
| 1017 }, |
| 1018 { |
| 1019 "name": "paused", |
| 1020 "parameters": [ |
| 1021 { |
| 1022 "name": "callFrames", |
| 1023 "type": "array", |
| 1024 "items": { |
| 1025 "$ref": "CallFrame" |
| 1026 }, |
| 1027 "description": "Call stack the virtual machine stopped on." |
| 1028 }, |
| 1029 { |
| 1030 "name": "reason", |
| 1031 "type": "string", |
| 1032 "enum": [ |
| 1033 "XHR", |
| 1034 "DOM", |
| 1035 "EventListener", |
| 1036 "exception", |
| 1037 "assert", |
| 1038 "CSPViolation", |
| 1039 "debugCommand", |
| 1040 "promiseRejection", |
| 1041 "other" |
| 1042 ], |
| 1043 "description": "Pause reason." |
| 1044 }, |
| 1045 { |
| 1046 "name": "data", |
| 1047 "type": "object", |
| 1048 "optional": true, |
| 1049 "description": "Object containing break-specific auxiliary p
roperties." |
| 1050 }, |
| 1051 { |
| 1052 "name": "hitBreakpoints", |
| 1053 "type": "array", |
| 1054 "optional": true, |
| 1055 "items": { |
| 1056 "type": "string" |
| 1057 }, |
| 1058 "description": "Hit breakpoints IDs", |
| 1059 "hidden": true |
| 1060 }, |
| 1061 { |
| 1062 "name": "asyncStackTrace", |
| 1063 "$ref": "Runtime.StackTrace", |
| 1064 "optional": true, |
| 1065 "description": "Async stack trace, if any.", |
| 1066 "hidden": true |
| 1067 } |
| 1068 ], |
| 1069 "description": "Fired when the virtual machine stopped on breakpoint
or exception or any other stop criteria." |
| 1070 }, |
| 1071 { |
| 1072 "name": "resumed", |
| 1073 "description": "Fired when the virtual machine resumed execution." |
| 1074 } |
| 1075 ] |
| 1076 } |
OLD | NEW |