Module chrome_remote_interface_model::debugger[][src]

This is supported 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

Breakpoint identifier.

Fired when breakpoint is resolved to an actual script and location.

JavaScript call frame. Array of call frames form the call stack.

Call frame identifier.

Continues execution until specific location is reached.

Continues execution until specific location is reached.

Debug symbols available for a wasm script.

Disables debugger for given page.

Disables debugger for given page.

Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.

Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received.

Evaluates expression on a given call frame.

Evaluates expression on a given call frame.

Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.

Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.

Returns source for the script with given id.

Returns source for the script with given id.

Returns stack trace with given stackTraceId.

Returns stack trace with given stackTraceId.

This command is deprecated. Use getScriptSource instead.

This command is deprecated. Use getScriptSource instead.

Location in the source code.

LocationRangeexperimental

Location range within one script.

Stops on the next JavaScript statement.

PauseOnAsyncCallCommandDeprecatedexperimental
PauseOnAsyncCallReturnDeprecatedexperimental

Stops on the next JavaScript statement.

Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria.

Removes JavaScript breakpoint.

Removes JavaScript breakpoint.

Restarts particular call frame from the beginning.

Restarts particular call frame from the beginning.

Resumes JavaScript execution.

Resumes JavaScript execution.

Fired when the virtual machine resumed execution.

Scope description.

Fired when virtual machine fails to parse the script.

Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger.

ScriptPositionexperimental

Location in the source code.

Searches for given string in script content.

Searches for given string in script content.

Search match for resource.

Enables or disables async call stacks tracking.

Enables or disables async call stacks tracking.

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.

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.

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.

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.

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.

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.

Sets JavaScript breakpoint at a given location.

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.

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.

Sets JavaScript breakpoint at a given location.

Activates / deactivates all breakpoints on the page.

Activates / deactivates all breakpoints on the page.

Sets instrumentation breakpoint.

Sets instrumentation breakpoint.

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.

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.

Changes return value in top frame. Available only at return break position.

Changes return value in top frame. Available only at return break position.

Edits JavaScript source live.

Edits JavaScript source live.

Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).

Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).

Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.

Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.

Steps into the function call.

Steps into the function call.

Steps out of the function call.

Steps out of the function call.

Steps over the statement.

Steps over the statement.

Enums