Chrome Remote Interface v0.0.5 ChromeRemoteInterface.RPC.Debugger View Source
Debugger domain exposes JavaScript debugging capabilities. It allows setting and removing breakpoints, stepping through execution, exploring stack traces, etc.
Link to this section Summary
Functions
Continues execution until specific location is reached
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
Evaluates expression on a given call frame
Returns possible locations for breakpoint. scriptId in start and end range locations should be the same
Returns source for the script with given id
Stops on the next JavaScript statement
Removes JavaScript breakpoint
Restarts particular call frame from the beginning
Resumes JavaScript execution
Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called
Searches for given string in script content
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
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 a given location
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
Activates / deactivates all breakpoints on the page
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
Edits JavaScript source live
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
Steps into the function call
Steps out of the function call
Steps over the statement
Link to this section Functions
Continues execution until specific location is reached.
Parameters:
location -
Disables debugger for given page.
Parameters:
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:
Evaluates expression on a given call frame.
Parameters:
callFrameId - releaseObjectGroup
).includeCommandLineAPI - setPauseOnException
state.returnByValue -
Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
Parameters:
start -
Returns source for the script with given id.
Parameters:
scriptId -
Stops on the next JavaScript statement.
Parameters:
Removes JavaScript breakpoint.
Parameters:
breakpointId -
Restarts particular call frame from the beginning.
Parameters:
callFrameId -
Resumes JavaScript execution.
Parameters:
Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called.
Parameters:
Searches for given string in script content.
Parameters:
scriptId -
Enables or disables async call stacks tracking.
Parameters:
maxDepth - 0
will effectively disable collecting async call stacks (default).
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.
Parameters:
patterns -
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.
Parameters:
scriptId -
Sets JavaScript breakpoint at a given location.
Parameters:
location -
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:
lineNumber - url
or urlRegex
must be specified.columnNumber -
Activates / deactivates all breakpoints on the page.
Parameters:
active -
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
.
Parameters:
state -
Edits JavaScript source live.
Parameters:
scriptId -
Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
Parameters:
skip -
Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
Parameters:
scopeNumber -
Steps into the function call.
Parameters:
Steps out of the function call.
Parameters:
Steps over the statement.
Parameters: