Module debugger

Module debugger 

Source
Available on crate features Debugger and Runtime only.
Expand description

Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.

Structs§

BreakLocation
BreakLocationBuilder
BreakpointId
Breakpoint identifier.
BreakpointResolvedEvent
Fired when breakpoint is resolved to an actual script and location.
CallFrame
JavaScript call frame. Array of call frames form the call stack.
CallFrameBuilder
CallFrameId
Call frame identifier.
ContinueToLocationCommand
Continues execution until specific location is reached.
ContinueToLocationReturn
Continues execution until specific location is reached.
DebugSymbols
Debug symbols available for a wasm script.
DisableCommand
Disables debugger for given page.
DisableReturn
Disables debugger for given page.
EnableCommand
Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
EnableReturn
Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
EvaluateOnCallFrameCommand
Evaluates expression on a given call frame.
EvaluateOnCallFrameCommandBuilder
EvaluateOnCallFrameReturn
Evaluates expression on a given call frame.
GetPossibleBreakpointsCommand
Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
GetPossibleBreakpointsReturn
Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
GetScriptSourceCommand
Returns source for the script with given id.
GetScriptSourceReturn
Returns source for the script with given id.
GetStackTraceCommandexperimental
Returns stack trace with given stackTraceId.
GetStackTraceReturnexperimental
Returns stack trace with given stackTraceId.
GetWasmBytecodeCommandDeprecated
This command is deprecated. Use getScriptSource instead.
GetWasmBytecodeReturnDeprecated
This command is deprecated. Use getScriptSource instead.
Location
Location in the source code.
LocationRangeexperimental
Location range within one script.
PauseCommand
Stops on the next JavaScript statement.
PauseOnAsyncCallCommandDeprecatedexperimental
PauseOnAsyncCallReturnDeprecatedexperimental
PauseReturn
Stops on the next JavaScript statement.
PausedEvent
Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
PausedEventBuilder
PausedEventData
RemoveBreakpointCommand
Removes JavaScript breakpoint.
RemoveBreakpointReturn
Removes JavaScript breakpoint.
RestartFrameCommand
Restarts particular call frame from the beginning.
RestartFrameReturn
Restarts particular call frame from the beginning.
ResumeCommand
Resumes JavaScript execution.
ResumeReturn
Resumes JavaScript execution.
ResumedEvent
Fired when the virtual machine resumed execution.
Scope
Scope description.
ScopeBuilder
ScriptFailedToParseEvent
Fired when virtual machine fails to parse the script.
ScriptFailedToParseEventBuilder
ScriptFailedToParseEventExecutionContextAuxData
ScriptParsedEvent
Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
ScriptParsedEventBuilder
ScriptParsedEventExecutionContextAuxData
ScriptPositionexperimental
Location in the source code.
SearchInContentCommand
Searches for given string in script content.
SearchInContentCommandBuilder
SearchInContentReturn
Searches for given string in script content.
SearchMatch
Search match for resource.
SetAsyncCallStackDepthCommand
Enables or disables async call stacks tracking.
SetAsyncCallStackDepthReturn
Enables or disables async call stacks tracking.
SetBlackboxPatternsCommandexperimental
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.
SetBlackboxPatternsReturnexperimental
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.
SetBlackboxedRangesCommandexperimental
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.
SetBlackboxedRangesReturnexperimental
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.
SetBreakpointByUrlCommand
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.
SetBreakpointByUrlCommandBuilder
SetBreakpointByUrlReturn
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.
SetBreakpointCommand
Sets JavaScript breakpoint at a given location.
SetBreakpointOnFunctionCallCommandexperimental
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.
SetBreakpointOnFunctionCallReturnexperimental
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.
SetBreakpointReturn
Sets JavaScript breakpoint at a given location.
SetBreakpointsActiveCommand
Activates / deactivates all breakpoints on the page.
SetBreakpointsActiveReturn
Activates / deactivates all breakpoints on the page.
SetInstrumentationBreakpointCommand
Sets instrumentation breakpoint.
SetInstrumentationBreakpointReturn
Sets instrumentation breakpoint.
SetPauseOnExceptionsCommand
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.
SetPauseOnExceptionsReturn
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.
SetReturnValueCommandexperimental
Changes return value in top frame. Available only at return break position.
SetReturnValueReturnexperimental
Changes return value in top frame. Available only at return break position.
SetScriptSourceCommand
Edits JavaScript source live.
SetScriptSourceReturn
Edits JavaScript source live.
SetScriptSourceReturnBuilder
SetSkipAllPausesCommand
Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
SetSkipAllPausesReturn
Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
SetVariableValueCommand
Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
SetVariableValueCommandBuilder
SetVariableValueReturn
Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
StepIntoCommand
Steps into the function call.
StepIntoReturn
Steps into the function call.
StepOutCommand
Steps out of the function call.
StepOutReturn
Steps out of the function call.
StepOverCommand
Steps over the statement.
StepOverReturn
Steps over the statement.

Enums§

BreakLocationType
ContinueToLocationCommandTargetCallFrames
DebugSymbolsType
PausedEventReason
ScopeType
ScriptLanguage
SetInstrumentationBreakpointCommandInstrumentation
SetPauseOnExceptionsCommandState