cdp-0.0.2.0: A library for the Chrome Devtools Protocol
Safe HaskellNone
LanguageHaskell2010

CDP.Domains.Debugger

Description

Debugger

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

Synopsis

Documentation

data PDebuggerStepInto Source #

Steps into the function call.

Parameters of the stepInto command.

Constructors

PDebuggerStepInto 

Fields

data PDebuggerSetVariableValue Source #

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

Parameters of the setVariableValue command.

Constructors

PDebuggerSetVariableValue 

Fields

data PDebuggerSetSkipAllPauses Source #

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

Parameters of the setSkipAllPauses command.

Constructors

PDebuggerSetSkipAllPauses 

Fields

data DebuggerSetScriptSource Source #

Constructors

DebuggerSetScriptSource 

Fields

data DebuggerSetScriptSourceStatus Source #

Instances

Instances details
Eq DebuggerSetScriptSourceStatus Source # 
Instance details

Defined in CDP.Domains.Debugger

Ord DebuggerSetScriptSourceStatus Source # 
Instance details

Defined in CDP.Domains.Debugger

Read DebuggerSetScriptSourceStatus Source # 
Instance details

Defined in CDP.Domains.Debugger

Show DebuggerSetScriptSourceStatus Source # 
Instance details

Defined in CDP.Domains.Debugger

ToJSON DebuggerSetScriptSourceStatus Source # 
Instance details

Defined in CDP.Domains.Debugger

FromJSON DebuggerSetScriptSourceStatus Source # 
Instance details

Defined in CDP.Domains.Debugger

data PDebuggerSetScriptSource Source #

Edits JavaScript source live.

In general, functions that are currently on the stack can not be edited with a single exception: If the edited function is the top-most stack frame and that is the only activation of that function on the stack. In this case the live edit will be successful and a restartFrame for the top-most function is automatically triggered.

Parameters of the setScriptSource command.

Constructors

PDebuggerSetScriptSource 

Fields

data PDebuggerSetReturnValue Source #

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

Parameters of the setReturnValue command.

data PDebuggerSetPauseOnExceptions Source #

data PDebuggerSetPauseOnExceptionsState 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 of the setPauseOnExceptions command.

Instances

Instances details
Eq PDebuggerSetPauseOnExceptionsState Source # 
Instance details

Defined in CDP.Domains.Debugger

Ord PDebuggerSetPauseOnExceptionsState Source # 
Instance details

Defined in CDP.Domains.Debugger

Read PDebuggerSetPauseOnExceptionsState Source # 
Instance details

Defined in CDP.Domains.Debugger

Show PDebuggerSetPauseOnExceptionsState Source # 
Instance details

Defined in CDP.Domains.Debugger

ToJSON PDebuggerSetPauseOnExceptionsState Source # 
Instance details

Defined in CDP.Domains.Debugger

FromJSON PDebuggerSetPauseOnExceptionsState Source # 
Instance details

Defined in CDP.Domains.Debugger

data PDebuggerSetBreakpointsActive Source #

Activates / deactivates all breakpoints on the page.

Parameters of the setBreakpointsActive command.

Constructors

PDebuggerSetBreakpointsActive 

Fields

data PDebuggerSetBreakpointOnFunctionCall Source #

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.

Parameters of the setBreakpointOnFunctionCall command.

Constructors

PDebuggerSetBreakpointOnFunctionCall 

Fields

Instances

Instances details
Eq PDebuggerSetBreakpointOnFunctionCall Source # 
Instance details

Defined in CDP.Domains.Debugger

Show PDebuggerSetBreakpointOnFunctionCall Source # 
Instance details

Defined in CDP.Domains.Debugger

ToJSON PDebuggerSetBreakpointOnFunctionCall Source # 
Instance details

Defined in CDP.Domains.Debugger

Command PDebuggerSetBreakpointOnFunctionCall Source # 
Instance details

Defined in CDP.Domains.Debugger

type CommandResponse PDebuggerSetBreakpointOnFunctionCall Source # 
Instance details

Defined in CDP.Domains.Debugger

data PDebuggerSetBreakpointByUrl 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 of the setBreakpointByUrl command.

Constructors

PDebuggerSetBreakpointByUrl 

Fields

data PDebuggerSetInstrumentationBreakpoint Source #

Instances

Instances details
Eq PDebuggerSetInstrumentationBreakpoint Source # 
Instance details

Defined in CDP.Domains.Debugger

Show PDebuggerSetInstrumentationBreakpoint Source # 
Instance details

Defined in CDP.Domains.Debugger

ToJSON PDebuggerSetInstrumentationBreakpoint Source # 
Instance details

Defined in CDP.Domains.Debugger

Command PDebuggerSetInstrumentationBreakpoint Source # 
Instance details

Defined in CDP.Domains.Debugger

type CommandResponse PDebuggerSetInstrumentationBreakpoint Source # 
Instance details

Defined in CDP.Domains.Debugger

data PDebuggerSetInstrumentationBreakpointInstrumentation Source #

Sets instrumentation breakpoint.

Parameters of the setInstrumentationBreakpoint command.

Instances

Instances details
Eq PDebuggerSetInstrumentationBreakpointInstrumentation Source # 
Instance details

Defined in CDP.Domains.Debugger

Ord PDebuggerSetInstrumentationBreakpointInstrumentation Source # 
Instance details

Defined in CDP.Domains.Debugger

Read PDebuggerSetInstrumentationBreakpointInstrumentation Source # 
Instance details

Defined in CDP.Domains.Debugger

Show PDebuggerSetInstrumentationBreakpointInstrumentation Source # 
Instance details

Defined in CDP.Domains.Debugger

ToJSON PDebuggerSetInstrumentationBreakpointInstrumentation Source # 
Instance details

Defined in CDP.Domains.Debugger

FromJSON PDebuggerSetInstrumentationBreakpointInstrumentation Source # 
Instance details

Defined in CDP.Domains.Debugger

data PDebuggerSetBreakpoint Source #

Sets JavaScript breakpoint at a given location.

Parameters of the setBreakpoint command.

Constructors

PDebuggerSetBreakpoint 

Fields

data PDebuggerSetBlackboxedRanges Source #

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 of the setBlackboxedRanges command.

data PDebuggerSetBlackboxPatterns Source #

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 of the setBlackboxPatterns command.

Constructors

PDebuggerSetBlackboxPatterns 

Fields

data PDebuggerSetAsyncCallStackDepth Source #

Enables or disables async call stacks tracking.

Parameters of the setAsyncCallStackDepth command.

Constructors

PDebuggerSetAsyncCallStackDepth 

Fields

data PDebuggerSearchInContent Source #

Searches for given string in script content.

Parameters of the searchInContent command.

Constructors

PDebuggerSearchInContent 

Fields

data PDebuggerResume Source #

Resumes JavaScript execution.

Parameters of the resume command.

Constructors

PDebuggerResume 

Fields

  • pDebuggerResumeTerminateOnResume :: Maybe Bool

    Set to true to terminate execution upon resuming execution. In contrast to Runtime.terminateExecution, this will allows to execute further JavaScript (i.e. via evaluation) until execution of the paused code is actually resumed, at which point termination is triggered. If execution is currently not paused, this parameter has no effect.

data PDebuggerRestartFrame Source #

Constructors

PDebuggerRestartFrame 

Fields

data PDebuggerRestartFrameMode Source #

Restarts particular call frame from the beginning. The old, deprecated behavior of restartFrame is to stay paused and allow further CDP commands after a restart was scheduled. This can cause problems with restarting, so we now continue execution immediatly after it has been scheduled until we reach the beginning of the restarted frame.

To stay back-wards compatible, restartFrame now expects a mode parameter to be present. If the mode parameter is missing, restartFrame errors out.

The various return values are deprecated and callFrames is always empty. Use the call frames from the `Debugger#paused` events instead, that fires once V8 pauses at the beginning of the restarted function.

Parameters of the restartFrame command.

Instances

Instances details
Eq PDebuggerRestartFrameMode Source # 
Instance details

Defined in CDP.Domains.Debugger

Ord PDebuggerRestartFrameMode Source # 
Instance details

Defined in CDP.Domains.Debugger

Read PDebuggerRestartFrameMode Source # 
Instance details

Defined in CDP.Domains.Debugger

Show PDebuggerRestartFrameMode Source # 
Instance details

Defined in CDP.Domains.Debugger

ToJSON PDebuggerRestartFrameMode Source # 
Instance details

Defined in CDP.Domains.Debugger

FromJSON PDebuggerRestartFrameMode Source # 
Instance details

Defined in CDP.Domains.Debugger

data PDebuggerRemoveBreakpoint Source #

Removes JavaScript breakpoint.

Parameters of the removeBreakpoint command.

data PDebuggerGetStackTrace Source #

Returns stack trace with given stackTraceId.

Parameters of the getStackTrace command.

data PDebuggerNextWasmDisassemblyChunk Source #

Disassemble the next chunk of lines for the module corresponding to the stream. If disassembly is complete, this API will invalidate the streamId and return an empty chunk. Any subsequent calls for the now invalid stream will return errors.

Parameters of the nextWasmDisassemblyChunk command.

Instances

Instances details
Eq PDebuggerNextWasmDisassemblyChunk Source # 
Instance details

Defined in CDP.Domains.Debugger

Show PDebuggerNextWasmDisassemblyChunk Source # 
Instance details

Defined in CDP.Domains.Debugger

ToJSON PDebuggerNextWasmDisassemblyChunk Source # 
Instance details

Defined in CDP.Domains.Debugger

Command PDebuggerNextWasmDisassemblyChunk Source # 
Instance details

Defined in CDP.Domains.Debugger

type CommandResponse PDebuggerNextWasmDisassemblyChunk Source # 
Instance details

Defined in CDP.Domains.Debugger

data DebuggerDisassembleWasmModule Source #

Constructors

DebuggerDisassembleWasmModule 

Fields

data PDebuggerDisassembleWasmModule Source #

Parameters of the disassembleWasmModule command.

data PDebuggerGetScriptSource Source #

Returns source for the script with given id.

Parameters of the getScriptSource command.

Constructors

PDebuggerGetScriptSource 

Fields

data PDebuggerGetPossibleBreakpoints Source #

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

Parameters of the getPossibleBreakpoints command.

Constructors

PDebuggerGetPossibleBreakpoints 

Fields

data PDebuggerEvaluateOnCallFrame Source #

Evaluates expression on a given call frame.

Parameters of the evaluateOnCallFrame command.

Constructors

PDebuggerEvaluateOnCallFrame 

Fields

data PDebuggerEnable 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 of the enable command.

Constructors

PDebuggerEnable 

Fields

data PDebuggerContinueToLocation Source #

data PDebuggerContinueToLocationTargetCallFrames Source #

Continues execution until specific location is reached.

Parameters of the continueToLocation command.

Instances

Instances details
Eq PDebuggerContinueToLocationTargetCallFrames Source # 
Instance details

Defined in CDP.Domains.Debugger

Ord PDebuggerContinueToLocationTargetCallFrames Source # 
Instance details

Defined in CDP.Domains.Debugger

Read PDebuggerContinueToLocationTargetCallFrames Source # 
Instance details

Defined in CDP.Domains.Debugger

Show PDebuggerContinueToLocationTargetCallFrames Source # 
Instance details

Defined in CDP.Domains.Debugger

ToJSON PDebuggerContinueToLocationTargetCallFrames Source # 
Instance details

Defined in CDP.Domains.Debugger

FromJSON PDebuggerContinueToLocationTargetCallFrames Source # 
Instance details

Defined in CDP.Domains.Debugger

data DebuggerScriptParsed Source #

Type of the scriptParsed event.

Constructors

DebuggerScriptParsed 

Fields

data DebuggerScriptFailedToParse Source #

Type of the scriptFailedToParse event.

Constructors

DebuggerScriptFailedToParse 

Fields

data DebuggerPaused Source #

Constructors

DebuggerPaused 

Fields

data DebuggerPausedReason Source #

Type of the paused event.

Instances

Instances details
Eq DebuggerPausedReason Source # 
Instance details

Defined in CDP.Domains.Debugger

Ord DebuggerPausedReason Source # 
Instance details

Defined in CDP.Domains.Debugger

Read DebuggerPausedReason Source # 
Instance details

Defined in CDP.Domains.Debugger

Show DebuggerPausedReason Source # 
Instance details

Defined in CDP.Domains.Debugger

ToJSON DebuggerPausedReason Source # 
Instance details

Defined in CDP.Domains.Debugger

FromJSON DebuggerPausedReason Source # 
Instance details

Defined in CDP.Domains.Debugger

data DebuggerDebugSymbolsType Source #

Type DebugSymbols. Debug symbols available for a wasm script.

Instances

Instances details
Eq DebuggerDebugSymbolsType Source # 
Instance details

Defined in CDP.Domains.Debugger

Ord DebuggerDebugSymbolsType Source # 
Instance details

Defined in CDP.Domains.Debugger

Read DebuggerDebugSymbolsType Source # 
Instance details

Defined in CDP.Domains.Debugger

Show DebuggerDebugSymbolsType Source # 
Instance details

Defined in CDP.Domains.Debugger

ToJSON DebuggerDebugSymbolsType Source # 
Instance details

Defined in CDP.Domains.Debugger

FromJSON DebuggerDebugSymbolsType Source # 
Instance details

Defined in CDP.Domains.Debugger

data DebuggerScriptLanguage Source #

Type ScriptLanguage. Enum of possible script languages.

Instances

Instances details
Eq DebuggerScriptLanguage Source # 
Instance details

Defined in CDP.Domains.Debugger

Ord DebuggerScriptLanguage Source # 
Instance details

Defined in CDP.Domains.Debugger

Read DebuggerScriptLanguage Source # 
Instance details

Defined in CDP.Domains.Debugger

Show DebuggerScriptLanguage Source # 
Instance details

Defined in CDP.Domains.Debugger

ToJSON DebuggerScriptLanguage Source # 
Instance details

Defined in CDP.Domains.Debugger

FromJSON DebuggerScriptLanguage Source # 
Instance details

Defined in CDP.Domains.Debugger

data DebuggerBreakLocationType Source #

Instances

Instances details
Eq DebuggerBreakLocationType Source # 
Instance details

Defined in CDP.Domains.Debugger

Ord DebuggerBreakLocationType Source # 
Instance details

Defined in CDP.Domains.Debugger

Read DebuggerBreakLocationType Source # 
Instance details

Defined in CDP.Domains.Debugger

Show DebuggerBreakLocationType Source # 
Instance details

Defined in CDP.Domains.Debugger

ToJSON DebuggerBreakLocationType Source # 
Instance details

Defined in CDP.Domains.Debugger

FromJSON DebuggerBreakLocationType Source # 
Instance details

Defined in CDP.Domains.Debugger

data DebuggerScope Source #

Constructors

DebuggerScope 

Fields

data DebuggerScopeType Source #

Type Scope. Scope description.

Instances

Instances details
Eq DebuggerScopeType Source # 
Instance details

Defined in CDP.Domains.Debugger

Ord DebuggerScopeType Source # 
Instance details

Defined in CDP.Domains.Debugger

Read DebuggerScopeType Source # 
Instance details

Defined in CDP.Domains.Debugger

Show DebuggerScopeType Source # 
Instance details

Defined in CDP.Domains.Debugger

ToJSON DebuggerScopeType Source # 
Instance details

Defined in CDP.Domains.Debugger

FromJSON DebuggerScopeType Source # 
Instance details

Defined in CDP.Domains.Debugger

data DebuggerCallFrame Source #

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

Constructors

DebuggerCallFrame 

Fields

data DebuggerLocation Source #

Type Location. Location in the source code.

Constructors

DebuggerLocation 

Fields

type DebuggerCallFrameId = Text Source #

Type CallFrameId. Call frame identifier.

type DebuggerBreakpointId = Text Source #

Type BreakpointId. Breakpoint identifier.