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§
- Break
Location - Break
Location Builder - Breakpoint
Id - Breakpoint identifier.
- Breakpoint
Resolved Event - Fired when breakpoint is resolved to an actual script and location.
- Call
Frame - JavaScript call frame. Array of call frames form the call stack.
- Call
Frame Builder - Call
Frame Id - Call frame identifier.
- Continue
ToLocation Command - Continues execution until specific location is reached.
- Continue
ToLocation Return - Continues execution until specific location is reached.
- Debug
Symbols - Debug symbols available for a wasm script.
- Disable
Command - Disables debugger for given page.
- Disable
Return - Disables debugger for given page.
- Enable
Command - 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
Return - Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.
- Evaluate
OnCall Frame Command - Evaluates expression on a given call frame.
- Evaluate
OnCall Frame Command Builder - Evaluate
OnCall Frame Return - Evaluates expression on a given call frame.
- GetPossible
Breakpoints Command - Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
- GetPossible
Breakpoints Return - Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
- GetScript
Source Command - Returns source for the script with given id.
- GetScript
Source Return - Returns source for the script with given id.
- GetStack
Trace Command experimental - Returns stack trace with given
stackTraceId. - GetStack
Trace Return experimental - Returns stack trace with given
stackTraceId. - GetWasm
Bytecode Command Deprecated - This command is deprecated. Use getScriptSource instead.
- GetWasm
Bytecode Return Deprecated - This command is deprecated. Use getScriptSource instead.
- Location
- Location in the source code.
- Location
Range experimental - Location range within one script.
- Pause
Command - Stops on the next JavaScript statement.
- Pause
OnAsync Call Command Deprecated experimental - Pause
OnAsync Call Return Deprecated experimental - Pause
Return - Stops on the next JavaScript statement.
- Paused
Event - Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.
- Paused
Event Builder - Paused
Event Data - Remove
Breakpoint Command - Removes JavaScript breakpoint.
- Remove
Breakpoint Return - Removes JavaScript breakpoint.
- Restart
Frame Command - Restarts particular call frame from the beginning.
- Restart
Frame Return - Restarts particular call frame from the beginning.
- Resume
Command - Resumes JavaScript execution.
- Resume
Return - Resumes JavaScript execution.
- Resumed
Event - Fired when the virtual machine resumed execution.
- Scope
- Scope description.
- Scope
Builder - Script
Failed ToParse Event - Fired when virtual machine fails to parse the script.
- Script
Failed ToParse Event Builder - Script
Failed ToParse Event Execution Context AuxData - Script
Parsed Event - Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.
- Script
Parsed Event Builder - Script
Parsed Event Execution Context AuxData - Script
Position experimental - Location in the source code.
- Search
InContent Command - Searches for given string in script content.
- Search
InContent Command Builder - Search
InContent Return - Searches for given string in script content.
- Search
Match - Search match for resource.
- SetAsync
Call Stack Depth Command - Enables or disables async call stacks tracking.
- SetAsync
Call Stack Depth Return - Enables or disables async call stacks tracking.
- SetBlackbox
Patterns Command experimental - 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.
- SetBlackbox
Patterns Return experimental - 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.
- SetBlackboxed
Ranges Command experimental - 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.
- SetBlackboxed
Ranges Return experimental - 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.
- SetBreakpoint
ByUrl Command - 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
locationsproperty. Further matching script parsing will result in subsequentbreakpointResolvedevents issued. This logical breakpoint will survive page reloads. - SetBreakpoint
ByUrl Command Builder - SetBreakpoint
ByUrl Return - 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
locationsproperty. Further matching script parsing will result in subsequentbreakpointResolvedevents issued. This logical breakpoint will survive page reloads. - SetBreakpoint
Command - Sets JavaScript breakpoint at a given location.
- SetBreakpoint
OnFunction Call Command experimental - 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.
- SetBreakpoint
OnFunction Call Return experimental - 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.
- SetBreakpoint
Return - Sets JavaScript breakpoint at a given location.
- SetBreakpoints
Active Command - Activates / deactivates all breakpoints on the page.
- SetBreakpoints
Active Return - Activates / deactivates all breakpoints on the page.
- SetInstrumentation
Breakpoint Command - Sets instrumentation breakpoint.
- SetInstrumentation
Breakpoint Return - Sets instrumentation breakpoint.
- SetPause
OnExceptions Command - 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. - SetPause
OnExceptions Return - 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. - SetReturn
Value Command experimental - Changes return value in top frame. Available only at return break position.
- SetReturn
Value Return experimental - Changes return value in top frame. Available only at return break position.
- SetScript
Source Command - Edits JavaScript source live.
- SetScript
Source Return - Edits JavaScript source live.
- SetScript
Source Return Builder - SetSkip
AllPauses Command - Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
- SetSkip
AllPauses Return - Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
- SetVariable
Value Command - Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
- SetVariable
Value Command Builder - SetVariable
Value Return - Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
- Step
Into Command - Steps into the function call.
- Step
Into Return - Steps into the function call.
- Step
OutCommand - Steps out of the function call.
- Step
OutReturn - Steps out of the function call.
- Step
Over Command - Steps over the statement.
- Step
Over Return - Steps over the statement.