Name | Description | Flags |
continueToLocation |
Continues execution until specific location is reached. |
- |
PARAMETERS:
Name | Type | Description | Flags |
location |
$REF: Location |
Location to continue to. |
- |
targetCallFrames |
"any", "current"String [Hover] Enum |
- |
[OPTIONAL]
|
|
disable |
Disables debugger for given page. |
- |
enable |
Enables debugger for the given page. Clients should not assume that the debugging has been
enabled until the result for this command is received. |
- |
PARAMETERS:
Name | Type | Description | Flags |
maxScriptsCacheSize |
Number |
The maximum size in bytes of collected scripts (not referenced by other heap objects)
the debugger can hold. Puts no limit if parameter is omitted. |
[OPTIONAL]
[EXPERIMENTAL]
|
RETURNS:
|
evaluateOnCallFrame |
Evaluates expression on a given call frame. |
- |
PARAMETERS:
Name | Type | Description | Flags |
callFrameId |
$REF: CallFrameId |
Call frame identifier to evaluate on. |
- |
expression |
String |
Expression to evaluate. |
- |
objectGroup |
String |
String object group name to put result into (allows rapid releasing resulting object handles
using `releaseObjectGroup`). |
[OPTIONAL]
|
includeCommandLineAPI |
Boolean |
Specifies whether command line API should be available to the evaluated expression, defaults
to false. |
[OPTIONAL]
|
silent |
Boolean |
In silent mode exceptions thrown during evaluation are not reported and do not pause
execution. Overrides `setPauseOnException` state. |
[OPTIONAL]
|
returnByValue |
Boolean |
Whether the result is expected to be a JSON object that should be sent by value. |
[OPTIONAL]
|
generatePreview |
Boolean |
Whether preview should be generated for the result. |
[OPTIONAL]
[EXPERIMENTAL]
|
throwOnSideEffect |
Boolean |
Whether to throw an exception if side effect cannot be ruled out during evaluation. |
[OPTIONAL]
|
timeout |
$REF: Runtime.TimeDelta |
Terminate execution after timing out (number of milliseconds). |
[OPTIONAL]
[EXPERIMENTAL]
|
RETURNS:
|
getPossibleBreakpoints |
Returns possible locations for breakpoint. scriptId in start and end range locations should be
the same. |
- |
PARAMETERS:
Name | Type | Description | Flags |
start |
$REF: Location |
Start of range to search possible breakpoint locations in. |
- |
end |
$REF: Location |
End of range to search possible breakpoint locations in (excluding). When not specified, end
of scripts is used as end of range. |
[OPTIONAL]
|
restrictToFunction |
Boolean |
Only consider locations which are in the same (non-nested) function as start. |
[OPTIONAL]
|
RETURNS:
Name | Type | Description | Flags |
locations |
Array (of) $REF: BreakLocation |
List of the possible breakpoint locations. |
- |
|
getScriptSource |
Returns source for the script with given id. |
- |
PARAMETERS:
Name | Type | Description | Flags |
scriptId |
$REF: Runtime.ScriptId |
Id of the script to get source for. |
- |
RETURNS:
Name | Type | Description | Flags |
scriptSource |
String |
Script source (empty in case of Wasm bytecode). |
- |
bytecode |
String |
Wasm bytecode. (Encoded as a base64 string when passed over JSON) |
[OPTIONAL]
|
|
getWasmBytecode |
This command is deprecated. Use getScriptSource instead. |
[DEPRECATED]
|
PARAMETERS:
Name | Type | Description | Flags |
scriptId |
$REF: Runtime.ScriptId |
Id of the Wasm script to get source for. |
- |
RETURNS:
Name | Type | Description | Flags |
bytecode |
String |
Script source. (Encoded as a base64 string when passed over JSON) |
- |
|
getStackTrace |
Returns stack trace with given `stackTraceId`. |
[EXPERIMENTAL]
|
PARAMETERS:
RETURNS:
|
pause |
Stops on the next JavaScript statement. |
- |
pauseOnAsyncCall |
- |
[EXPERIMENTAL]
[DEPRECATED]
|
PARAMETERS:
Name | Type | Description | Flags |
parentStackTraceId |
$REF: Runtime.StackTraceId |
Debugger will pause when async call with given stack trace is started. |
- |
|
removeBreakpoint |
Removes JavaScript breakpoint. |
- |
PARAMETERS:
|
restartFrame |
Restarts particular call frame from the beginning. |
[DEPRECATED]
|
PARAMETERS:
Name | Type | Description | Flags |
callFrameId |
$REF: CallFrameId |
Call frame identifier to evaluate on. |
- |
RETURNS:
Name | Type | Description | Flags |
callFrames |
Array (of) $REF: CallFrame |
New stack trace. |
- |
asyncStackTrace |
$REF: Runtime.StackTrace |
Async stack trace, if any. |
[OPTIONAL]
|
asyncStackTraceId |
$REF: Runtime.StackTraceId |
Async stack trace, if any. |
[OPTIONAL]
[EXPERIMENTAL]
|
|
resume |
Resumes JavaScript execution. |
- |
PARAMETERS:
Name | Type | Description | Flags |
terminateOnResume |
Boolean |
Set to true to terminate execution upon resuming execution. In contrast
to Runtime.terminateExecution, this will allows to execute further
JavaScript (i.e. via evaluation) until execution of the paused code
is actually resumed, at which point termination is triggered.
If execution is currently not paused, this parameter has no effect. |
[OPTIONAL]
|
|
searchInContent |
Searches for given string in script content. |
- |
PARAMETERS:
Name | Type | Description | Flags |
scriptId |
$REF: Runtime.ScriptId |
Id of the script to search in. |
- |
query |
String |
String to search for. |
- |
caseSensitive |
Boolean |
If true, search is case sensitive. |
[OPTIONAL]
|
isRegex |
Boolean |
If true, treats string parameter as regex. |
[OPTIONAL]
|
RETURNS:
Name | Type | Description | Flags |
result |
Array (of) $REF: SearchMatch |
List of search matches. |
- |
|
setAsyncCallStackDepth |
Enables or disables async call stacks tracking. |
- |
PARAMETERS:
Name | Type | Description | Flags |
maxDepth |
Integer |
Maximum depth of async call stacks. Setting to `0` will effectively disable collecting async
call stacks (default). |
- |
|
setBlackboxPatterns |
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' several times, finally resorting to 'step out' if unsuccessful. |
[EXPERIMENTAL]
|
PARAMETERS:
Name | Type | Description | Flags |
patterns |
Array (of) String |
Array of regexps that will be used to check script url for blackbox state. |
- |
|
setBlackboxedRanges |
Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted
scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful.
Positions array contains positions where blackbox state is changed. First interval isn't
blackboxed. Array should be sorted. |
[EXPERIMENTAL]
|
PARAMETERS:
|
setBreakpoint |
Sets JavaScript breakpoint at a given location. |
- |
PARAMETERS:
Name | Type | Description | Flags |
location |
$REF: Location |
Location to set breakpoint in. |
- |
condition |
String |
Expression to use as a breakpoint condition. When specified, debugger will only stop on the
breakpoint if this expression evaluates to true. |
[OPTIONAL]
|
RETURNS:
Name | Type | Description | Flags |
breakpointId |
$REF: BreakpointId |
Id of the created breakpoint for further reference. |
- |
actualLocation |
$REF: Location |
Location this breakpoint resolved into. |
- |
|
setInstrumentationBreakpoint |
Sets instrumentation breakpoint. |
- |
PARAMETERS:
Name | Type | Description | Flags |
instrumentation |
"beforeScriptExecution", "beforeScriptWithSourceMapExecution"String [Hover] Enum |
Instrumentation name. |
- |
RETURNS:
Name | Type | Description | Flags |
breakpointId |
$REF: BreakpointId |
Id of the created breakpoint for further reference. |
- |
|
setBreakpointByUrl |
Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this
command is issued, all existing parsed scripts will have breakpoints resolved and returned in
`locations` property. Further matching script parsing will result in subsequent
`breakpointResolved` events issued. This logical breakpoint will survive page reloads. |
- |
PARAMETERS:
Name | Type | Description | Flags |
lineNumber |
Integer |
Line number to set breakpoint at. |
- |
url |
String |
URL of the resources to set breakpoint on. |
[OPTIONAL]
|
urlRegex |
String |
Regex pattern for the URLs of the resources to set breakpoints on. Either `url` or
`urlRegex` must be specified. |
[OPTIONAL]
|
scriptHash |
String |
Script hash of the resources to set breakpoint on. |
[OPTIONAL]
|
columnNumber |
Integer |
Offset in the line to set breakpoint at. |
[OPTIONAL]
|
condition |
String |
Expression to use as a breakpoint condition. When specified, debugger will only stop on the
breakpoint if this expression evaluates to true. |
[OPTIONAL]
|
RETURNS:
Name | Type | Description | Flags |
breakpointId |
$REF: BreakpointId |
Id of the created breakpoint for further reference. |
- |
locations |
Array (of) $REF: Location |
List of the locations this breakpoint resolved into upon addition. |
- |
|
setBreakpointOnFunctionCall |
Sets JavaScript breakpoint before each call to the given function.
If another function was created from the same source as a given one,
calling it will also trigger the breakpoint. |
[EXPERIMENTAL]
|
PARAMETERS:
Name | Type | Description | Flags |
objectId |
$REF: Runtime.RemoteObjectId |
Function object id. |
- |
condition |
String |
Expression to use as a breakpoint condition. When specified, debugger will
stop on the breakpoint if this expression evaluates to true. |
[OPTIONAL]
|
RETURNS:
Name | Type | Description | Flags |
breakpointId |
$REF: BreakpointId |
Id of the created breakpoint for further reference. |
- |
|
setBreakpointsActive |
Activates / deactivates all breakpoints on the page. |
- |
PARAMETERS:
Name | Type | Description | Flags |
active |
Boolean |
New value for breakpoints active state. |
- |
|
setPauseOnExceptions |
Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or
no exceptions. Initial pause on exceptions state is `none`. |
- |
PARAMETERS:
Name | Type | Description | Flags |
state |
"none", "uncaught", "all"String [Hover] Enum |
Pause on exceptions mode. |
- |
|
setReturnValue |
Changes return value in top frame. Available only at return break position. |
[EXPERIMENTAL]
|
PARAMETERS:
|
setScriptSource |
Edits JavaScript source live. |
- |
PARAMETERS:
Name | Type | Description | Flags |
scriptId |
$REF: Runtime.ScriptId |
Id of the script to edit. |
- |
scriptSource |
String |
New content of the script. |
- |
dryRun |
Boolean |
If true the change will not actually be applied. Dry run may be used to get result
description without actually modifying the code. |
[OPTIONAL]
|
RETURNS:
Name | Type | Description | Flags |
callFrames |
Array (of) $REF: CallFrame |
New stack trace in case editing has happened while VM was stopped. |
[OPTIONAL]
|
stackChanged |
Boolean |
Whether current call stack was modified after applying the changes. |
[OPTIONAL]
|
asyncStackTrace |
$REF: Runtime.StackTrace |
Async stack trace, if any. |
[OPTIONAL]
|
asyncStackTraceId |
$REF: Runtime.StackTraceId |
Async stack trace, if any. |
[OPTIONAL]
[EXPERIMENTAL]
|
exceptionDetails |
$REF: Runtime.ExceptionDetails |
Exception details if any. |
[OPTIONAL]
|
|
setSkipAllPauses |
Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). |
- |
PARAMETERS:
Name | Type | Description | Flags |
skip |
Boolean |
New value for skip pauses state. |
- |
|
setVariableValue |
Changes value of variable in a callframe. Object-based scopes are not supported and must be
mutated manually. |
- |
PARAMETERS:
Name | Type | Description | Flags |
scopeNumber |
Integer |
0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch'
scope types are allowed. Other scopes could be manipulated manually. |
- |
variableName |
String |
Variable name. |
- |
newValue |
$REF: Runtime.CallArgument |
New variable value. |
- |
callFrameId |
$REF: CallFrameId |
Id of callframe that holds variable. |
- |
|
stepInto |
Steps into the function call. |
- |
PARAMETERS:
Name | Type | Description | Flags |
breakOnAsyncCall |
Boolean |
Debugger will pause on the execution of the first async task which was scheduled
before next pause. |
[OPTIONAL]
[EXPERIMENTAL]
|
skipList |
Array (of) $REF: LocationRange |
The skipList specifies location ranges that should be skipped on step into. |
[OPTIONAL]
[EXPERIMENTAL]
|
|
stepOut |
Steps out of the function call. |
- |
stepOver |
Steps over the statement. |
- |
PARAMETERS:
Name | Type | Description | Flags |
skipList |
Array (of) $REF: LocationRange |
The skipList specifies location ranges that should be skipped on step over. |
[OPTIONAL]
[EXPERIMENTAL]
|
|