Chrome Remote Interface v0.4.1 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.
Searches for given string in script content.
Enables or disables async call stacks tracking.
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.
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
.
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
continueToLocation(page_pid) View Source
Continues execution until specific location is reached.
Parameters:
location -
continueToLocation(page_pid, parameters) View Source
continueToLocation(page_pid, parameters, opts) View Source
disable(page_pid) View Source
Disables debugger for given page.
Parameters:
disable(page_pid, parameters) View Source
disable(page_pid, parameters, opts) View Source
enable(page_pid) View Source
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:
maxScriptsCacheSize -
enable(page_pid, parameters) View Source
enable(page_pid, parameters, opts) View Source
evaluateOnCallFrame(page_pid) View Source
Evaluates expression on a given call frame.
Parameters:
callFrameId - releaseObjectGroup
).includeCommandLineAPI - setPauseOnException
state.returnByValue -
evaluateOnCallFrame(page_pid, parameters) View Source
evaluateOnCallFrame(page_pid, parameters, opts) View Source
experimental?() View Source
getPossibleBreakpoints(page_pid) View Source
Returns possible locations for breakpoint. scriptId in start and end range locations should be the same.
Parameters:
start -
getPossibleBreakpoints(page_pid, parameters) View Source
getPossibleBreakpoints(page_pid, parameters, opts) View Source
getScriptSource(page_pid) View Source
Returns source for the script with given id.
Parameters:
scriptId -
getScriptSource(page_pid, parameters) View Source
getScriptSource(page_pid, parameters, opts) View Source
pause(page_pid) View Source
Stops on the next JavaScript statement.
Parameters:
pause(page_pid, parameters) View Source
pause(page_pid, parameters, opts) View Source
removeBreakpoint(page_pid) View Source
Removes JavaScript breakpoint.
Parameters:
breakpointId -
removeBreakpoint(page_pid, parameters) View Source
removeBreakpoint(page_pid, parameters, opts) View Source
restartFrame(page_pid) View Source
Restarts particular call frame from the beginning.
Parameters:
callFrameId -
restartFrame(page_pid, parameters) View Source
restartFrame(page_pid, parameters, opts) View Source
resume(page_pid) View Source
Resumes JavaScript execution.
Parameters:
resume(page_pid, parameters) View Source
resume(page_pid, parameters, opts) View Source
searchInContent(page_pid) View Source
Searches for given string in script content.
Parameters:
scriptId -
searchInContent(page_pid, parameters) View Source
searchInContent(page_pid, parameters, opts) View Source
setAsyncCallStackDepth(page_pid) View Source
Enables or disables async call stacks tracking.
Parameters:
maxDepth - 0
will effectively disable collecting async
call stacks (default).
setAsyncCallStackDepth(page_pid, parameters) View Source
setAsyncCallStackDepth(page_pid, parameters, opts) View Source
setBreakpoint(page_pid) View Source
Sets JavaScript breakpoint at a given location.
Parameters:
location -
setBreakpoint(page_pid, parameters) View Source
setBreakpoint(page_pid, parameters, opts) View Source
setBreakpointByUrl(page_pid) View Source
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.scriptHash -
setBreakpointByUrl(page_pid, parameters) View Source
setBreakpointByUrl(page_pid, parameters, opts) View Source
setBreakpointsActive(page_pid) View Source
Activates / deactivates all breakpoints on the page.
Parameters:
active -
setBreakpointsActive(page_pid, parameters) View Source
setBreakpointsActive(page_pid, parameters, opts) View Source
setInstrumentationBreakpoint(page_pid) View Source
Sets instrumentation breakpoint.
Parameters:
instrumentation -
setInstrumentationBreakpoint(page_pid, parameters) View Source
setInstrumentationBreakpoint(page_pid, parameters, opts) View Source
setPauseOnExceptions(page_pid) View Source
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 -
setPauseOnExceptions(page_pid, parameters) View Source
setPauseOnExceptions(page_pid, parameters, opts) View Source
setScriptSource(page_pid) View Source
Edits JavaScript source live.
Parameters:
scriptId -
setScriptSource(page_pid, parameters) View Source
setScriptSource(page_pid, parameters, opts) View Source
setSkipAllPauses(page_pid) View Source
Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc).
Parameters:
skip -
setSkipAllPauses(page_pid, parameters) View Source
setSkipAllPauses(page_pid, parameters, opts) View Source
setVariableValue(page_pid) View Source
Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually.
Parameters:
scopeNumber -
setVariableValue(page_pid, parameters) View Source
setVariableValue(page_pid, parameters, opts) View Source
stepInto(page_pid) View Source
Steps into the function call.
Parameters:
breakOnAsyncCall -
stepInto(page_pid, parameters) View Source
stepInto(page_pid, parameters, opts) View Source
stepOut(page_pid) View Source
Steps out of the function call.
Parameters:
stepOut(page_pid, parameters) View Source
stepOut(page_pid, parameters, opts) View Source
stepOver(page_pid) View Source
Steps over the statement.
Parameters: