Skip to main content

Module commands

Module commands 

Source

Structs§

ContinueToLocation
Continues execution until specific location is reached. continueToLocation
ContinueToLocationParams
Continues execution until specific location is reached. continueToLocation
Disable
Disables debugger for given page. disable
DisableParams
Disables debugger for given page. disable
DisassembleWasmModule
DisassembleWasmModuleParams
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. enable
EnableParams
Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received. enable
EvaluateOnCallFrame
Evaluates expression on a given call frame. evaluateOnCallFrame
EvaluateOnCallFrameParams
Evaluates expression on a given call frame. evaluateOnCallFrame
GetPossibleBreakpoints
Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. getPossibleBreakpoints
GetPossibleBreakpointsParams
Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. getPossibleBreakpoints
GetScriptSource
Returns source for the script with given id. getScriptSource
GetScriptSourceParams
Returns source for the script with given id. getScriptSource
GetStackTrace
Returns stack trace with given stackTraceId. getStackTrace
GetStackTraceParams
Returns stack trace with given stackTraceId. getStackTrace
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. nextWasmDisassemblyChunk
NextWasmDisassemblyChunkParams
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. nextWasmDisassemblyChunk
Pause
Stops on the next JavaScript statement. pause
PauseParams
Stops on the next JavaScript statement. pause
RemoveBreakpoint
Removes JavaScript breakpoint. removeBreakpoint
RemoveBreakpointParams
Removes JavaScript breakpoint. removeBreakpoint
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.
RestartFrameParams
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.
Resume
Resumes JavaScript execution. resume
ResumeParams
Resumes JavaScript execution. resume
SearchInContent
Searches for given string in script content. searchInContent
SearchInContentParams
Searches for given string in script content. searchInContent
SetAsyncCallStackDepth
Enables or disables async call stacks tracking. setAsyncCallStackDepth
SetAsyncCallStackDepthParams
Enables or disables async call stacks tracking. setAsyncCallStackDepth
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. setBlackboxExecutionContexts
SetBlackboxExecutionContextsParams
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. setBlackboxExecutionContexts
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. setBlackboxPatterns
SetBlackboxPatternsParams
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. setBlackboxPatterns
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. setBlackboxedRanges
SetBlackboxedRangesParams
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. setBlackboxedRanges
SetBreakpoint
Sets JavaScript breakpoint at a given location. setBreakpoint
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. setBreakpointByUrl
SetBreakpointByUrlParams
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. setBreakpointByUrl
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. setBreakpointOnFunctionCall
SetBreakpointOnFunctionCallParams
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. setBreakpointOnFunctionCall
SetBreakpointParams
Sets JavaScript breakpoint at a given location. setBreakpoint
SetBreakpointsActive
Activates / deactivates all breakpoints on the page. setBreakpointsActive
SetBreakpointsActiveParams
Activates / deactivates all breakpoints on the page. setBreakpointsActive
SetInstrumentationBreakpoint
Sets instrumentation breakpoint. setInstrumentationBreakpoint
SetInstrumentationBreakpointParams
Sets instrumentation breakpoint. setInstrumentationBreakpoint
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. setPauseOnExceptions
SetPauseOnExceptionsParams
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. setPauseOnExceptions
SetReturnValue
Changes return value in top frame. Available only at return break position. setReturnValue
SetReturnValueParams
Changes return value in top frame. Available only at return break position. setReturnValue
SetScriptSource
Edits JavaScript source live.
SetScriptSourceParams
Edits JavaScript source live.
SetSkipAllPauses
Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). setSkipAllPauses
SetSkipAllPausesParams
Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). setSkipAllPauses
SetVariableValue
Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. setVariableValue
SetVariableValueParams
Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. setVariableValue
StepInto
Steps into the function call. stepInto
StepIntoParams
Steps into the function call. stepInto
StepOut
Steps out of the function call. stepOut
StepOutParams
Steps out of the function call. stepOut
StepOver
Steps over the statement. stepOver
StepOverParams
Steps over the statement. stepOver

Enums§

ContinueToLocationMethod
ContinueToLocationTargetCallFrames
DebuggerCommands
DisableMethod
DisassembleWasmModuleMethod
EnableMethod
EvaluateOnCallFrameMethod
GetPossibleBreakpointsMethod
GetScriptSourceMethod
GetStackTraceMethod
NextWasmDisassemblyChunkMethod
PauseMethod
RemoveBreakpointMethod
RestartFrameMethod
RestartFrameMode
The mode parameter must be present and set to ‘StepInto’, otherwise restartFrame will error out.
ResumeMethod
SearchInContentMethod
SetAsyncCallStackDepthMethod
SetBlackboxExecutionContextsMethod
SetBlackboxPatternsMethod
SetBlackboxedRangesMethod
SetBreakpointByUrlMethod
SetBreakpointMethod
SetBreakpointOnFunctionCallMethod
SetBreakpointsActiveMethod
SetInstrumentationBreakpointInstrumentation
Instrumentation name.
SetInstrumentationBreakpointMethod
SetPauseOnExceptionsMethod
SetPauseOnExceptionsState
Pause on exceptions mode.
SetReturnValueMethod
SetScriptSourceMethod
SetSkipAllPausesMethod
SetVariableValueMethod
StepIntoMethod
StepOutMethod
StepOverMethod