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]
|
|
disassembleWasmModule |
- |
[EXPERIMENTAL]
|
PARAMETERS:
Name | Type | Description | Flags |
scriptId |
$REF: RunTime.ScriptId |
Id of the script to disassemble |
- |
RETURNS:
Name | Type | Description | Flags |
streamId |
String |
For large modules, return a stream from which additional chunks of
disassembly can be read successively. |
[OPTIONAL]
|
totalNumberOfLines |
Integer |
The total number of lines in the disassembly text. |
- |
functionBodyOffsets |
Array (of) Integer |
The offsets of all function bodies, in the format [start1, end1,
start2, end2, ...] where all ends are exclusive. |
- |
chunk |
$REF: WasmDisassemblyChunk |
The first chunk of disassembly. |
- |
|
nextWasmDisassemblyChunk |
Disassemble the next chunk of lines for the module corresponding to the
stream. If disassembly is complete, this API will invalidate the streamId
and return an empty chunk. Any subsequent calls for the now invalid stream
will return errors. |
[EXPERIMENTAL]
|
PARAMETERS:
Name | Type | Description | Flags |
streamId |
String |
- |
- |
RETURNS:
|
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. The old, deprecated
behavior of `restartFrame` is to stay paused and allow further CDP commands
after a restart was scheduled. This can cause problems with restarting, so
we now continue execution immediatly after it has been scheduled until we
reach the beginning of the restarted frame.
To stay back-wards compatible, `restartFrame` now expects a `mode`
parameter to be present. If the `mode` parameter is missing, `restartFrame`
errors out.
The various return values are deprecated and `callFrames` is always empty.
Use the call frames from the `Debugger#paused` events instead, that fires
once V8 pauses at the beginning of the restarted function. |
- |
PARAMETERS:
Name | Type | Description | Flags |
callFrameId |
$REF: CallFrameId |
Call frame identifier to evaluate on. |
- |
mode |
"StepInto"String [Hover] Enum |
The `mode` parameter must be present and set to 'StepInto', otherwise
`restartFrame` will error out. |
[OPTIONAL]
[EXPERIMENTAL]
|
RETURNS:
Name | Type | Description | Flags |
callFrames |
Array (of) $REF: CallFrame |
New stack trace. |
[DEPRECATED]
|
asyncStackTrace |
$REF: RunTime.StackTrace |
Async stack trace, if any. |
[OPTIONAL]
[DEPRECATED]
|
asyncStackTraceId |
$REF: RunTime.StackTraceId |
Async stack trace, if any. |
[OPTIONAL]
[DEPRECATED]
|
|
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). |
- |
|
setBlackboxExecutionContexts |
Replace previous blackbox execution contexts with passed ones. Forces backend to skip
stepping/pausing in scripts in these execution contexts. 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 |
uniqueIds |
Array (of) String |
Array of execution context unique ids for the debugger to ignore. |
- |
|
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. |
- |
skipAnonymous |
Boolean |
If true, also ignore scripts with no source url. |
[OPTIONAL]
|
|
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 caught exceptions, no exceptions. Initial pause on exceptions state is `none`. |
- |
PARAMETERS:
Name | Type | Description | Flags |
state |
"none", "caught", "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.
In general, functions that are currently on the stack can not be edited with
a single exception: If the edited function is the top-most stack frame and
that is the only activation of that function on the stack. In this case
the live edit will be successful and a `Debugger.restartFrame` for the
top-most function is automatically triggered. |
- |
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]
|
allowTopFrameEditing |
Boolean |
If true, then `scriptSource` is allowed to change the function on top of the stack
as long as the top-most stack frame is the only activation of that function. |
[OPTIONAL]
[EXPERIMENTAL]
|
RETURNS:
Name | Type | Description | Flags |
callFrames |
Array (of) $REF: CallFrame |
New stack trace in case editing has happened while VM was stopped. |
[OPTIONAL]
[DEPRECATED]
|
stackChanged |
Boolean |
Whether current call stack was modified after applying the changes. |
[OPTIONAL]
[DEPRECATED]
|
asyncStackTrace |
$REF: RunTime.StackTrace |
Async stack trace, if any. |
[OPTIONAL]
[DEPRECATED]
|
asyncStackTraceId |
$REF: RunTime.StackTraceId |
Async stack trace, if any. |
[OPTIONAL]
[DEPRECATED]
|
status |
"Ok", "CompileError", "BlockedByActiveGenerator", "BlockedByActiveFunction", "BlockedByTopLevelEsModuleChange"String [Hover] Enum |
Whether the operation was successful or not. Only `Ok` denotes a
successful live edit while the other enum variants denote why
the live edit failed. |
[EXPERIMENTAL]
|
exceptionDetails |
$REF: RunTime.ExceptionDetails |
Exception details if any. Only present when `status` is `CompileError`. |
[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]
|
|