debugger

package
v0.0.0-...-ab6d1ce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package debugger provides the Chrome Debugging Protocol commands, types, and events for the Debugger domain.

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

Generated by the chromedp-gen command.

Index

Constants

This section is empty.

Variables

EventTypes all event types in the domain.

Functions

This section is empty.

Types

type BreakLocation

type BreakLocation struct {
	ScriptID     runtime.ScriptID  `json:"scriptId"`               // Script identifier as reported in the Debugger.scriptParsed.
	LineNumber   int64             `json:"lineNumber"`             // Line number in the script (0-based).
	ColumnNumber int64             `json:"columnNumber,omitempty"` // Column number in the script (0-based).
	Type         BreakLocationType `json:"type,omitempty"`
}

BreakLocation [no description].

func (BreakLocation) MarshalEasyJSON

func (v BreakLocation) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (BreakLocation) MarshalJSON

func (v BreakLocation) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*BreakLocation) UnmarshalEasyJSON

func (v *BreakLocation) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BreakLocation) UnmarshalJSON

func (v *BreakLocation) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type BreakLocationType

type BreakLocationType string

BreakLocationType [no description].

const (
	BreakLocationTypeDebuggerStatement BreakLocationType = "debuggerStatement"
	BreakLocationTypeCall              BreakLocationType = "call"
	BreakLocationTypeReturn            BreakLocationType = "return"
)

BreakLocationType values.

func (BreakLocationType) MarshalEasyJSON

func (t BreakLocationType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (BreakLocationType) MarshalJSON

func (t BreakLocationType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (BreakLocationType) String

func (t BreakLocationType) String() string

String returns the BreakLocationType as string value.

func (*BreakLocationType) UnmarshalEasyJSON

func (t *BreakLocationType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*BreakLocationType) UnmarshalJSON

func (t *BreakLocationType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type BreakpointID

type BreakpointID string

BreakpointID breakpoint identifier.

func (BreakpointID) String

func (t BreakpointID) String() string

String returns the BreakpointID as string value.

type CallFrame

type CallFrame struct {
	CallFrameID      CallFrameID           `json:"callFrameId"`                // Call frame identifier. This identifier is only valid while the virtual machine is paused.
	FunctionName     string                `json:"functionName"`               // Name of the JavaScript function called on this call frame.
	FunctionLocation *Location             `json:"functionLocation,omitempty"` // Location in the source code.
	Location         *Location             `json:"location"`                   // Location in the source code.
	ScopeChain       []*Scope              `json:"scopeChain"`                 // Scope chain for this call frame.
	This             *runtime.RemoteObject `json:"this"`                       // this object for this call frame.
	ReturnValue      *runtime.RemoteObject `json:"returnValue,omitempty"`      // The value being returned, if the function is at return point.
}

CallFrame javaScript call frame. Array of call frames form the call stack.

func (CallFrame) MarshalEasyJSON

func (v CallFrame) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (CallFrame) MarshalJSON

func (v CallFrame) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*CallFrame) UnmarshalEasyJSON

func (v *CallFrame) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CallFrame) UnmarshalJSON

func (v *CallFrame) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type CallFrameID

type CallFrameID string

CallFrameID call frame identifier.

func (CallFrameID) String

func (t CallFrameID) String() string

String returns the CallFrameID as string value.

type ContinueToLocationParams

type ContinueToLocationParams struct {
	Location         *Location                          `json:"location"` // Location to continue to.
	TargetCallFrames ContinueToLocationTargetCallFrames `json:"targetCallFrames,omitempty"`
}

ContinueToLocationParams continues execution until specific location is reached.

func ContinueToLocation

func ContinueToLocation(location *Location) *ContinueToLocationParams

ContinueToLocation continues execution until specific location is reached.

parameters:

location - Location to continue to.

func (*ContinueToLocationParams) Do

Do executes Debugger.continueToLocation against the provided context and target handler.

func (ContinueToLocationParams) MarshalEasyJSON

func (v ContinueToLocationParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ContinueToLocationParams) MarshalJSON

func (v ContinueToLocationParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ContinueToLocationParams) UnmarshalEasyJSON

func (v *ContinueToLocationParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ContinueToLocationParams) UnmarshalJSON

func (v *ContinueToLocationParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (ContinueToLocationParams) WithTargetCallFrames

WithTargetCallFrames [no description].

type ContinueToLocationTargetCallFrames

type ContinueToLocationTargetCallFrames string

ContinueToLocationTargetCallFrames [no description].

const (
	ContinueToLocationTargetCallFramesAny     ContinueToLocationTargetCallFrames = "any"
	ContinueToLocationTargetCallFramesCurrent ContinueToLocationTargetCallFrames = "current"
)

ContinueToLocationTargetCallFrames values.

func (ContinueToLocationTargetCallFrames) MarshalEasyJSON

func (t ContinueToLocationTargetCallFrames) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ContinueToLocationTargetCallFrames) MarshalJSON

func (t ContinueToLocationTargetCallFrames) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ContinueToLocationTargetCallFrames) String

String returns the ContinueToLocationTargetCallFrames as string value.

func (*ContinueToLocationTargetCallFrames) UnmarshalEasyJSON

func (t *ContinueToLocationTargetCallFrames) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ContinueToLocationTargetCallFrames) UnmarshalJSON

func (t *ContinueToLocationTargetCallFrames) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type DisableParams

type DisableParams struct{}

DisableParams disables debugger for given page.

func Disable

func Disable() *DisableParams

Disable disables debugger for given page.

func (*DisableParams) Do

func (p *DisableParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Debugger.disable against the provided context and target handler.

func (DisableParams) MarshalEasyJSON

func (v DisableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON

func (v DisableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON

func (v *DisableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON

func (v *DisableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams

type EnableParams struct{}

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

func Enable

func Enable() *EnableParams

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

func (*EnableParams) Do

func (p *EnableParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Debugger.enable against the provided context and target handler.

func (EnableParams) MarshalEasyJSON

func (v EnableParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON

func (v EnableParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON

func (v *EnableParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON

func (v *EnableParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EvaluateOnCallFrameParams

type EvaluateOnCallFrameParams struct {
	CallFrameID           CallFrameID `json:"callFrameId"`                     // Call frame identifier to evaluate on.
	Expression            string      `json:"expression"`                      // Expression to evaluate.
	ObjectGroup           string      `json:"objectGroup,omitempty"`           // String object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup).
	IncludeCommandLineAPI bool        `json:"includeCommandLineAPI,omitempty"` // Specifies whether command line API should be available to the evaluated expression, defaults to false.
	Silent                bool        `json:"silent,omitempty"`                // In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.
	ReturnByValue         bool        `json:"returnByValue,omitempty"`         // Whether the result is expected to be a JSON object that should be sent by value.
	GeneratePreview       bool        `json:"generatePreview,omitempty"`       // Whether preview should be generated for the result.
	ThrowOnSideEffect     bool        `json:"throwOnSideEffect,omitempty"`     // Whether to throw an exception if side effect cannot be ruled out during evaluation.
}

EvaluateOnCallFrameParams evaluates expression on a given call frame.

func EvaluateOnCallFrame

func EvaluateOnCallFrame(callFrameID CallFrameID, expression string) *EvaluateOnCallFrameParams

EvaluateOnCallFrame evaluates expression on a given call frame.

parameters:

callFrameID - Call frame identifier to evaluate on.
expression - Expression to evaluate.

func (*EvaluateOnCallFrameParams) Do

func (p *EvaluateOnCallFrameParams) Do(ctxt context.Context, h cdp.Handler) (result *runtime.RemoteObject, exceptionDetails *runtime.ExceptionDetails, err error)

Do executes Debugger.evaluateOnCallFrame against the provided context and target handler.

returns:

result - Object wrapper for the evaluation result.
exceptionDetails - Exception details.

func (EvaluateOnCallFrameParams) MarshalEasyJSON

func (v EvaluateOnCallFrameParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EvaluateOnCallFrameParams) MarshalJSON

func (v EvaluateOnCallFrameParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EvaluateOnCallFrameParams) UnmarshalEasyJSON

func (v *EvaluateOnCallFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EvaluateOnCallFrameParams) UnmarshalJSON

func (v *EvaluateOnCallFrameParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (EvaluateOnCallFrameParams) WithGeneratePreview

func (p EvaluateOnCallFrameParams) WithGeneratePreview(generatePreview bool) *EvaluateOnCallFrameParams

WithGeneratePreview whether preview should be generated for the result.

func (EvaluateOnCallFrameParams) WithIncludeCommandLineAPI

func (p EvaluateOnCallFrameParams) WithIncludeCommandLineAPI(includeCommandLineAPI bool) *EvaluateOnCallFrameParams

WithIncludeCommandLineAPI specifies whether command line API should be available to the evaluated expression, defaults to false.

func (EvaluateOnCallFrameParams) WithObjectGroup

func (p EvaluateOnCallFrameParams) WithObjectGroup(objectGroup string) *EvaluateOnCallFrameParams

WithObjectGroup string object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup).

func (EvaluateOnCallFrameParams) WithReturnByValue

func (p EvaluateOnCallFrameParams) WithReturnByValue(returnByValue bool) *EvaluateOnCallFrameParams

WithReturnByValue whether the result is expected to be a JSON object that should be sent by value.

func (EvaluateOnCallFrameParams) WithSilent

WithSilent in silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state.

func (EvaluateOnCallFrameParams) WithThrowOnSideEffect

func (p EvaluateOnCallFrameParams) WithThrowOnSideEffect(throwOnSideEffect bool) *EvaluateOnCallFrameParams

WithThrowOnSideEffect whether to throw an exception if side effect cannot be ruled out during evaluation.

type EvaluateOnCallFrameReturns

type EvaluateOnCallFrameReturns struct {
	Result           *runtime.RemoteObject     `json:"result,omitempty"`           // Object wrapper for the evaluation result.
	ExceptionDetails *runtime.ExceptionDetails `json:"exceptionDetails,omitempty"` // Exception details.
}

EvaluateOnCallFrameReturns return values.

func (EvaluateOnCallFrameReturns) MarshalEasyJSON

func (v EvaluateOnCallFrameReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EvaluateOnCallFrameReturns) MarshalJSON

func (v EvaluateOnCallFrameReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EvaluateOnCallFrameReturns) UnmarshalEasyJSON

func (v *EvaluateOnCallFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EvaluateOnCallFrameReturns) UnmarshalJSON

func (v *EvaluateOnCallFrameReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventBreakpointResolved

type EventBreakpointResolved struct {
	BreakpointID BreakpointID `json:"breakpointId"` // Breakpoint unique identifier.
	Location     *Location    `json:"location"`     // Actual breakpoint location.
}

EventBreakpointResolved fired when breakpoint is resolved to an actual script and location.

func (EventBreakpointResolved) MarshalEasyJSON

func (v EventBreakpointResolved) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventBreakpointResolved) MarshalJSON

func (v EventBreakpointResolved) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventBreakpointResolved) UnmarshalEasyJSON

func (v *EventBreakpointResolved) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventBreakpointResolved) UnmarshalJSON

func (v *EventBreakpointResolved) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventPaused

type EventPaused struct {
	CallFrames      []*CallFrame        `json:"callFrames"` // Call stack the virtual machine stopped on.
	Reason          PausedReason        `json:"reason"`     // Pause reason.
	Data            easyjson.RawMessage `json:"data,omitempty"`
	HitBreakpoints  []string            `json:"hitBreakpoints,omitempty"`  // Hit breakpoints IDs
	AsyncStackTrace *runtime.StackTrace `json:"asyncStackTrace,omitempty"` // Async stack trace, if any.
}

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

func (EventPaused) MarshalEasyJSON

func (v EventPaused) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventPaused) MarshalJSON

func (v EventPaused) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventPaused) UnmarshalEasyJSON

func (v *EventPaused) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventPaused) UnmarshalJSON

func (v *EventPaused) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventResumed

type EventResumed struct{}

EventResumed fired when the virtual machine resumed execution.

func (EventResumed) MarshalEasyJSON

func (v EventResumed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventResumed) MarshalJSON

func (v EventResumed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventResumed) UnmarshalEasyJSON

func (v *EventResumed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventResumed) UnmarshalJSON

func (v *EventResumed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventScriptFailedToParse

type EventScriptFailedToParse struct {
	ScriptID                runtime.ScriptID           `json:"scriptId"`           // Identifier of the script parsed.
	URL                     string                     `json:"url"`                // URL or name of the script parsed (if any).
	StartLine               int64                      `json:"startLine"`          // Line offset of the script within the resource with given URL (for script tags).
	StartColumn             int64                      `json:"startColumn"`        // Column offset of the script within the resource with given URL.
	EndLine                 int64                      `json:"endLine"`            // Last line of the script.
	EndColumn               int64                      `json:"endColumn"`          // Length of the last line of the script.
	ExecutionContextID      runtime.ExecutionContextID `json:"executionContextId"` // Specifies script creation context.
	Hash                    string                     `json:"hash"`               // Content hash of the script.
	ExecutionContextAuxData easyjson.RawMessage        `json:"executionContextAuxData,omitempty"`
	SourceMapURL            string                     `json:"sourceMapURL,omitempty"` // URL of source map associated with script (if any).
	HasSourceURL            bool                       `json:"hasSourceURL,omitempty"` // True, if this script has sourceURL.
	IsModule                bool                       `json:"isModule,omitempty"`     // True, if this script is ES6 module.
	Length                  int64                      `json:"length,omitempty"`       // This script length.
	StackTrace              *runtime.StackTrace        `json:"stackTrace,omitempty"`   // JavaScript top stack frame of where the script parsed event was triggered if available.
}

EventScriptFailedToParse fired when virtual machine fails to parse the script.

func (EventScriptFailedToParse) MarshalEasyJSON

func (v EventScriptFailedToParse) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventScriptFailedToParse) MarshalJSON

func (v EventScriptFailedToParse) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventScriptFailedToParse) UnmarshalEasyJSON

func (v *EventScriptFailedToParse) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventScriptFailedToParse) UnmarshalJSON

func (v *EventScriptFailedToParse) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type EventScriptParsed

type EventScriptParsed struct {
	ScriptID                runtime.ScriptID           `json:"scriptId"`           // Identifier of the script parsed.
	URL                     string                     `json:"url"`                // URL or name of the script parsed (if any).
	StartLine               int64                      `json:"startLine"`          // Line offset of the script within the resource with given URL (for script tags).
	StartColumn             int64                      `json:"startColumn"`        // Column offset of the script within the resource with given URL.
	EndLine                 int64                      `json:"endLine"`            // Last line of the script.
	EndColumn               int64                      `json:"endColumn"`          // Length of the last line of the script.
	ExecutionContextID      runtime.ExecutionContextID `json:"executionContextId"` // Specifies script creation context.
	Hash                    string                     `json:"hash"`               // Content hash of the script.
	ExecutionContextAuxData easyjson.RawMessage        `json:"executionContextAuxData,omitempty"`
	IsLiveEdit              bool                       `json:"isLiveEdit,omitempty"`   // True, if this script is generated as a result of the live edit operation.
	SourceMapURL            string                     `json:"sourceMapURL,omitempty"` // URL of source map associated with script (if any).
	HasSourceURL            bool                       `json:"hasSourceURL,omitempty"` // True, if this script has sourceURL.
	IsModule                bool                       `json:"isModule,omitempty"`     // True, if this script is ES6 module.
	Length                  int64                      `json:"length,omitempty"`       // This script length.
	StackTrace              *runtime.StackTrace        `json:"stackTrace,omitempty"`   // JavaScript top stack frame of where the script parsed event was triggered if available.
}

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

func (EventScriptParsed) MarshalEasyJSON

func (v EventScriptParsed) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventScriptParsed) MarshalJSON

func (v EventScriptParsed) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*EventScriptParsed) UnmarshalEasyJSON

func (v *EventScriptParsed) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventScriptParsed) UnmarshalJSON

func (v *EventScriptParsed) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ExceptionsState

type ExceptionsState string

ExceptionsState pause on exceptions mode.

const (
	ExceptionsStateNone     ExceptionsState = "none"
	ExceptionsStateUncaught ExceptionsState = "uncaught"
	ExceptionsStateAll      ExceptionsState = "all"
)

ExceptionsState values.

func (ExceptionsState) MarshalEasyJSON

func (t ExceptionsState) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ExceptionsState) MarshalJSON

func (t ExceptionsState) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ExceptionsState) String

func (t ExceptionsState) String() string

String returns the ExceptionsState as string value.

func (*ExceptionsState) UnmarshalEasyJSON

func (t *ExceptionsState) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ExceptionsState) UnmarshalJSON

func (t *ExceptionsState) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type GetPossibleBreakpointsParams

type GetPossibleBreakpointsParams struct {
	Start              *Location `json:"start"`                        // Start of range to search possible breakpoint locations in.
	End                *Location `json:"end,omitempty"`                // End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.
	RestrictToFunction bool      `json:"restrictToFunction,omitempty"` // Only consider locations which are in the same (non-nested) function as start.
}

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

func GetPossibleBreakpoints

func GetPossibleBreakpoints(start *Location) *GetPossibleBreakpointsParams

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

parameters:

start - Start of range to search possible breakpoint locations in.

func (*GetPossibleBreakpointsParams) Do

func (p *GetPossibleBreakpointsParams) Do(ctxt context.Context, h cdp.Handler) (locations []*BreakLocation, err error)

Do executes Debugger.getPossibleBreakpoints against the provided context and target handler.

returns:

locations - List of the possible breakpoint locations.

func (GetPossibleBreakpointsParams) MarshalEasyJSON

func (v GetPossibleBreakpointsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPossibleBreakpointsParams) MarshalJSON

func (v GetPossibleBreakpointsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetPossibleBreakpointsParams) UnmarshalEasyJSON

func (v *GetPossibleBreakpointsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPossibleBreakpointsParams) UnmarshalJSON

func (v *GetPossibleBreakpointsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (GetPossibleBreakpointsParams) WithEnd

WithEnd end of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range.

func (GetPossibleBreakpointsParams) WithRestrictToFunction

func (p GetPossibleBreakpointsParams) WithRestrictToFunction(restrictToFunction bool) *GetPossibleBreakpointsParams

WithRestrictToFunction only consider locations which are in the same (non-nested) function as start.

type GetPossibleBreakpointsReturns

type GetPossibleBreakpointsReturns struct {
	Locations []*BreakLocation `json:"locations,omitempty"` // List of the possible breakpoint locations.
}

GetPossibleBreakpointsReturns return values.

func (GetPossibleBreakpointsReturns) MarshalEasyJSON

func (v GetPossibleBreakpointsReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPossibleBreakpointsReturns) MarshalJSON

func (v GetPossibleBreakpointsReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetPossibleBreakpointsReturns) UnmarshalEasyJSON

func (v *GetPossibleBreakpointsReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPossibleBreakpointsReturns) UnmarshalJSON

func (v *GetPossibleBreakpointsReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetScriptSourceParams

type GetScriptSourceParams struct {
	ScriptID runtime.ScriptID `json:"scriptId"` // Id of the script to get source for.
}

GetScriptSourceParams returns source for the script with given id.

func GetScriptSource

func GetScriptSource(scriptID runtime.ScriptID) *GetScriptSourceParams

GetScriptSource returns source for the script with given id.

parameters:

scriptID - Id of the script to get source for.

func (*GetScriptSourceParams) Do

func (p *GetScriptSourceParams) Do(ctxt context.Context, h cdp.Handler) (scriptSource string, err error)

Do executes Debugger.getScriptSource against the provided context and target handler.

returns:

scriptSource - Script source.

func (GetScriptSourceParams) MarshalEasyJSON

func (v GetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetScriptSourceParams) MarshalJSON

func (v GetScriptSourceParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetScriptSourceParams) UnmarshalEasyJSON

func (v *GetScriptSourceParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetScriptSourceParams) UnmarshalJSON

func (v *GetScriptSourceParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GetScriptSourceReturns

type GetScriptSourceReturns struct {
	ScriptSource string `json:"scriptSource,omitempty"` // Script source.
}

GetScriptSourceReturns return values.

func (GetScriptSourceReturns) MarshalEasyJSON

func (v GetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetScriptSourceReturns) MarshalJSON

func (v GetScriptSourceReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GetScriptSourceReturns) UnmarshalEasyJSON

func (v *GetScriptSourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetScriptSourceReturns) UnmarshalJSON

func (v *GetScriptSourceReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Location

type Location struct {
	ScriptID     runtime.ScriptID `json:"scriptId"`               // Script identifier as reported in the Debugger.scriptParsed.
	LineNumber   int64            `json:"lineNumber"`             // Line number in the script (0-based).
	ColumnNumber int64            `json:"columnNumber,omitempty"` // Column number in the script (0-based).
}

Location location in the source code.

func (Location) MarshalEasyJSON

func (v Location) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Location) MarshalJSON

func (v Location) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Location) UnmarshalEasyJSON

func (v *Location) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Location) UnmarshalJSON

func (v *Location) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PauseParams

type PauseParams struct{}

PauseParams stops on the next JavaScript statement.

func Pause

func Pause() *PauseParams

Pause stops on the next JavaScript statement.

func (*PauseParams) Do

func (p *PauseParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Debugger.pause against the provided context and target handler.

func (PauseParams) MarshalEasyJSON

func (v PauseParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (PauseParams) MarshalJSON

func (v PauseParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*PauseParams) UnmarshalEasyJSON

func (v *PauseParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PauseParams) UnmarshalJSON

func (v *PauseParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type PausedReason

type PausedReason string

PausedReason pause reason.

const (
	PausedReasonXHR              PausedReason = "XHR"
	PausedReasonDOM              PausedReason = "DOM"
	PausedReasonEventListener    PausedReason = "EventListener"
	PausedReasonException        PausedReason = "exception"
	PausedReasonAssert           PausedReason = "assert"
	PausedReasonDebugCommand     PausedReason = "debugCommand"
	PausedReasonPromiseRejection PausedReason = "promiseRejection"
	PausedReasonOOM              PausedReason = "OOM"
	PausedReasonOther            PausedReason = "other"
	PausedReasonAmbiguous        PausedReason = "ambiguous"
)

PausedReason values.

func (PausedReason) MarshalEasyJSON

func (t PausedReason) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (PausedReason) MarshalJSON

func (t PausedReason) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (PausedReason) String

func (t PausedReason) String() string

String returns the PausedReason as string value.

func (*PausedReason) UnmarshalEasyJSON

func (t *PausedReason) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*PausedReason) UnmarshalJSON

func (t *PausedReason) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type RemoveBreakpointParams

type RemoveBreakpointParams struct {
	BreakpointID BreakpointID `json:"breakpointId"`
}

RemoveBreakpointParams removes JavaScript breakpoint.

func RemoveBreakpoint

func RemoveBreakpoint(breakpointID BreakpointID) *RemoveBreakpointParams

RemoveBreakpoint removes JavaScript breakpoint.

parameters:

breakpointID

func (*RemoveBreakpointParams) Do

func (p *RemoveBreakpointParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Debugger.removeBreakpoint against the provided context and target handler.

func (RemoveBreakpointParams) MarshalEasyJSON

func (v RemoveBreakpointParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveBreakpointParams) MarshalJSON

func (v RemoveBreakpointParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RemoveBreakpointParams) UnmarshalEasyJSON

func (v *RemoveBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveBreakpointParams) UnmarshalJSON

func (v *RemoveBreakpointParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RestartFrameParams

type RestartFrameParams struct {
	CallFrameID CallFrameID `json:"callFrameId"` // Call frame identifier to evaluate on.
}

RestartFrameParams restarts particular call frame from the beginning.

func RestartFrame

func RestartFrame(callFrameID CallFrameID) *RestartFrameParams

RestartFrame restarts particular call frame from the beginning.

parameters:

callFrameID - Call frame identifier to evaluate on.

func (*RestartFrameParams) Do

func (p *RestartFrameParams) Do(ctxt context.Context, h cdp.Handler) (callFrames []*CallFrame, asyncStackTrace *runtime.StackTrace, err error)

Do executes Debugger.restartFrame against the provided context and target handler.

returns:

callFrames - New stack trace.
asyncStackTrace - Async stack trace, if any.

func (RestartFrameParams) MarshalEasyJSON

func (v RestartFrameParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RestartFrameParams) MarshalJSON

func (v RestartFrameParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RestartFrameParams) UnmarshalEasyJSON

func (v *RestartFrameParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RestartFrameParams) UnmarshalJSON

func (v *RestartFrameParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type RestartFrameReturns

type RestartFrameReturns struct {
	CallFrames      []*CallFrame        `json:"callFrames,omitempty"`      // New stack trace.
	AsyncStackTrace *runtime.StackTrace `json:"asyncStackTrace,omitempty"` // Async stack trace, if any.
}

RestartFrameReturns return values.

func (RestartFrameReturns) MarshalEasyJSON

func (v RestartFrameReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (RestartFrameReturns) MarshalJSON

func (v RestartFrameReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*RestartFrameReturns) UnmarshalEasyJSON

func (v *RestartFrameReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RestartFrameReturns) UnmarshalJSON

func (v *RestartFrameReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ResumeParams

type ResumeParams struct{}

ResumeParams resumes JavaScript execution.

func Resume

func Resume() *ResumeParams

Resume resumes JavaScript execution.

func (*ResumeParams) Do

func (p *ResumeParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Debugger.resume against the provided context and target handler.

func (ResumeParams) MarshalEasyJSON

func (v ResumeParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResumeParams) MarshalJSON

func (v ResumeParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ResumeParams) UnmarshalEasyJSON

func (v *ResumeParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResumeParams) UnmarshalJSON

func (v *ResumeParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ScheduleStepIntoAsyncParams

type ScheduleStepIntoAsyncParams struct{}

ScheduleStepIntoAsyncParams 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.

func ScheduleStepIntoAsync

func ScheduleStepIntoAsync() *ScheduleStepIntoAsyncParams

ScheduleStepIntoAsync 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.

func (*ScheduleStepIntoAsyncParams) Do

Do executes Debugger.scheduleStepIntoAsync against the provided context and target handler.

func (ScheduleStepIntoAsyncParams) MarshalEasyJSON

func (v ScheduleStepIntoAsyncParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScheduleStepIntoAsyncParams) MarshalJSON

func (v ScheduleStepIntoAsyncParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ScheduleStepIntoAsyncParams) UnmarshalEasyJSON

func (v *ScheduleStepIntoAsyncParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScheduleStepIntoAsyncParams) UnmarshalJSON

func (v *ScheduleStepIntoAsyncParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Scope

type Scope struct {
	Type          ScopeType             `json:"type"`   // Scope type.
	Object        *runtime.RemoteObject `json:"object"` // Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties.
	Name          string                `json:"name,omitempty"`
	StartLocation *Location             `json:"startLocation,omitempty"` // Location in the source code where scope starts
	EndLocation   *Location             `json:"endLocation,omitempty"`   // Location in the source code where scope ends
}

Scope scope description.

func (Scope) MarshalEasyJSON

func (v Scope) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Scope) MarshalJSON

func (v Scope) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Scope) UnmarshalEasyJSON

func (v *Scope) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Scope) UnmarshalJSON

func (v *Scope) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ScopeType

type ScopeType string

ScopeType scope type.

const (
	ScopeTypeGlobal  ScopeType = "global"
	ScopeTypeLocal   ScopeType = "local"
	ScopeTypeWith    ScopeType = "with"
	ScopeTypeClosure ScopeType = "closure"
	ScopeTypeCatch   ScopeType = "catch"
	ScopeTypeBlock   ScopeType = "block"
	ScopeTypeScript  ScopeType = "script"
	ScopeTypeEval    ScopeType = "eval"
	ScopeTypeModule  ScopeType = "module"
)

ScopeType values.

func (ScopeType) MarshalEasyJSON

func (t ScopeType) MarshalEasyJSON(out *jwriter.Writer)

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ScopeType) MarshalJSON

func (t ScopeType) MarshalJSON() ([]byte, error)

MarshalJSON satisfies json.Marshaler.

func (ScopeType) String

func (t ScopeType) String() string

String returns the ScopeType as string value.

func (*ScopeType) UnmarshalEasyJSON

func (t *ScopeType) UnmarshalEasyJSON(in *jlexer.Lexer)

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ScopeType) UnmarshalJSON

func (t *ScopeType) UnmarshalJSON(buf []byte) error

UnmarshalJSON satisfies json.Unmarshaler.

type ScriptPosition

type ScriptPosition struct {
	LineNumber   int64 `json:"lineNumber"`
	ColumnNumber int64 `json:"columnNumber"`
}

ScriptPosition location in the source code.

func (ScriptPosition) MarshalEasyJSON

func (v ScriptPosition) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScriptPosition) MarshalJSON

func (v ScriptPosition) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ScriptPosition) UnmarshalEasyJSON

func (v *ScriptPosition) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScriptPosition) UnmarshalJSON

func (v *ScriptPosition) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SearchInContentParams

type SearchInContentParams struct {
	ScriptID      runtime.ScriptID `json:"scriptId"`                // Id of the script to search in.
	Query         string           `json:"query"`                   // String to search for.
	CaseSensitive bool             `json:"caseSensitive,omitempty"` // If true, search is case sensitive.
	IsRegex       bool             `json:"isRegex,omitempty"`       // If true, treats string parameter as regex.
}

SearchInContentParams searches for given string in script content.

func SearchInContent

func SearchInContent(scriptID runtime.ScriptID, query string) *SearchInContentParams

SearchInContent searches for given string in script content.

parameters:

scriptID - Id of the script to search in.
query - String to search for.

func (*SearchInContentParams) Do

func (p *SearchInContentParams) Do(ctxt context.Context, h cdp.Handler) (result []*SearchMatch, err error)

Do executes Debugger.searchInContent against the provided context and target handler.

returns:

result - List of search matches.

func (SearchInContentParams) MarshalEasyJSON

func (v SearchInContentParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SearchInContentParams) MarshalJSON

func (v SearchInContentParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SearchInContentParams) UnmarshalEasyJSON

func (v *SearchInContentParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SearchInContentParams) UnmarshalJSON

func (v *SearchInContentParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SearchInContentParams) WithCaseSensitive

func (p SearchInContentParams) WithCaseSensitive(caseSensitive bool) *SearchInContentParams

WithCaseSensitive if true, search is case sensitive.

func (SearchInContentParams) WithIsRegex

func (p SearchInContentParams) WithIsRegex(isRegex bool) *SearchInContentParams

WithIsRegex if true, treats string parameter as regex.

type SearchInContentReturns

type SearchInContentReturns struct {
	Result []*SearchMatch `json:"result,omitempty"` // List of search matches.
}

SearchInContentReturns return values.

func (SearchInContentReturns) MarshalEasyJSON

func (v SearchInContentReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SearchInContentReturns) MarshalJSON

func (v SearchInContentReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SearchInContentReturns) UnmarshalEasyJSON

func (v *SearchInContentReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SearchInContentReturns) UnmarshalJSON

func (v *SearchInContentReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SearchMatch

type SearchMatch struct {
	LineNumber  float64 `json:"lineNumber"`  // Line number in resource content.
	LineContent string  `json:"lineContent"` // Line with match content.
}

SearchMatch search match for resource.

func (SearchMatch) MarshalEasyJSON

func (v SearchMatch) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SearchMatch) MarshalJSON

func (v SearchMatch) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SearchMatch) UnmarshalEasyJSON

func (v *SearchMatch) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SearchMatch) UnmarshalJSON

func (v *SearchMatch) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetAsyncCallStackDepthParams

type SetAsyncCallStackDepthParams struct {
	MaxDepth int64 `json:"maxDepth"` // Maximum depth of async call stacks. Setting to 0 will effectively disable collecting async call stacks (default).
}

SetAsyncCallStackDepthParams enables or disables async call stacks tracking.

func SetAsyncCallStackDepth

func SetAsyncCallStackDepth(maxDepth int64) *SetAsyncCallStackDepthParams

SetAsyncCallStackDepth enables or disables async call stacks tracking.

parameters:

maxDepth - Maximum depth of async call stacks. Setting to 0 will effectively disable collecting async call stacks (default).

func (*SetAsyncCallStackDepthParams) Do

Do executes Debugger.setAsyncCallStackDepth against the provided context and target handler.

func (SetAsyncCallStackDepthParams) MarshalEasyJSON

func (v SetAsyncCallStackDepthParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetAsyncCallStackDepthParams) MarshalJSON

func (v SetAsyncCallStackDepthParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetAsyncCallStackDepthParams) UnmarshalEasyJSON

func (v *SetAsyncCallStackDepthParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetAsyncCallStackDepthParams) UnmarshalJSON

func (v *SetAsyncCallStackDepthParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetBlackboxPatternsParams

type SetBlackboxPatternsParams struct {
	Patterns []string `json:"patterns"` // Array of regexps that will be used to check script url for blackbox state.
}

SetBlackboxPatternsParams 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.

func SetBlackboxPatterns

func SetBlackboxPatterns(patterns []string) *SetBlackboxPatternsParams

SetBlackboxPatterns 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 - Array of regexps that will be used to check script url for blackbox state.

func (*SetBlackboxPatternsParams) Do

Do executes Debugger.setBlackboxPatterns against the provided context and target handler.

func (SetBlackboxPatternsParams) MarshalEasyJSON

func (v SetBlackboxPatternsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBlackboxPatternsParams) MarshalJSON

func (v SetBlackboxPatternsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetBlackboxPatternsParams) UnmarshalEasyJSON

func (v *SetBlackboxPatternsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBlackboxPatternsParams) UnmarshalJSON

func (v *SetBlackboxPatternsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetBlackboxedRangesParams

type SetBlackboxedRangesParams struct {
	ScriptID  runtime.ScriptID  `json:"scriptId"` // Id of the script.
	Positions []*ScriptPosition `json:"positions"`
}

SetBlackboxedRangesParams 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.

func SetBlackboxedRanges

func SetBlackboxedRanges(scriptID runtime.ScriptID, positions []*ScriptPosition) *SetBlackboxedRangesParams

SetBlackboxedRanges 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 - Id of the script.
positions

func (*SetBlackboxedRangesParams) Do

Do executes Debugger.setBlackboxedRanges against the provided context and target handler.

func (SetBlackboxedRangesParams) MarshalEasyJSON

func (v SetBlackboxedRangesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBlackboxedRangesParams) MarshalJSON

func (v SetBlackboxedRangesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetBlackboxedRangesParams) UnmarshalEasyJSON

func (v *SetBlackboxedRangesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBlackboxedRangesParams) UnmarshalJSON

func (v *SetBlackboxedRangesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetBreakpointByURLParams

type SetBreakpointByURLParams struct {
	LineNumber   int64  `json:"lineNumber"`             // Line number to set breakpoint at.
	URL          string `json:"url,omitempty"`          // URL of the resources to set breakpoint on.
	URLRegex     string `json:"urlRegex,omitempty"`     // Regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified.
	ColumnNumber int64  `json:"columnNumber,omitempty"` // Offset in the line to set breakpoint at.
	Condition    string `json:"condition,omitempty"`    // Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
}

SetBreakpointByURLParams 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.

func SetBreakpointByURL

func SetBreakpointByURL(lineNumber int64) *SetBreakpointByURLParams

SetBreakpointByURL 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 - Line number to set breakpoint at.

func (*SetBreakpointByURLParams) Do

func (p *SetBreakpointByURLParams) Do(ctxt context.Context, h cdp.Handler) (breakpointID BreakpointID, locations []*Location, err error)

Do executes Debugger.setBreakpointByUrl against the provided context and target handler.

returns:

breakpointID - Id of the created breakpoint for further reference.
locations - List of the locations this breakpoint resolved into upon addition.

func (SetBreakpointByURLParams) MarshalEasyJSON

func (v SetBreakpointByURLParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBreakpointByURLParams) MarshalJSON

func (v SetBreakpointByURLParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetBreakpointByURLParams) UnmarshalEasyJSON

func (v *SetBreakpointByURLParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBreakpointByURLParams) UnmarshalJSON

func (v *SetBreakpointByURLParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetBreakpointByURLParams) WithColumnNumber

func (p SetBreakpointByURLParams) WithColumnNumber(columnNumber int64) *SetBreakpointByURLParams

WithColumnNumber offset in the line to set breakpoint at.

func (SetBreakpointByURLParams) WithCondition

func (p SetBreakpointByURLParams) WithCondition(condition string) *SetBreakpointByURLParams

WithCondition expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.

func (SetBreakpointByURLParams) WithURL

WithURL uRL of the resources to set breakpoint on.

func (SetBreakpointByURLParams) WithURLRegex

func (p SetBreakpointByURLParams) WithURLRegex(urlRegex string) *SetBreakpointByURLParams

WithURLRegex regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified.

type SetBreakpointByURLReturns

type SetBreakpointByURLReturns struct {
	BreakpointID BreakpointID `json:"breakpointId,omitempty"` // Id of the created breakpoint for further reference.
	Locations    []*Location  `json:"locations,omitempty"`    // List of the locations this breakpoint resolved into upon addition.
}

SetBreakpointByURLReturns return values.

func (SetBreakpointByURLReturns) MarshalEasyJSON

func (v SetBreakpointByURLReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBreakpointByURLReturns) MarshalJSON

func (v SetBreakpointByURLReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetBreakpointByURLReturns) UnmarshalEasyJSON

func (v *SetBreakpointByURLReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBreakpointByURLReturns) UnmarshalJSON

func (v *SetBreakpointByURLReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetBreakpointParams

type SetBreakpointParams struct {
	Location  *Location `json:"location"`            // Location to set breakpoint in.
	Condition string    `json:"condition,omitempty"` // Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.
}

SetBreakpointParams sets JavaScript breakpoint at a given location.

func SetBreakpoint

func SetBreakpoint(location *Location) *SetBreakpointParams

SetBreakpoint sets JavaScript breakpoint at a given location.

parameters:

location - Location to set breakpoint in.

func (*SetBreakpointParams) Do

func (p *SetBreakpointParams) Do(ctxt context.Context, h cdp.Handler) (breakpointID BreakpointID, actualLocation *Location, err error)

Do executes Debugger.setBreakpoint against the provided context and target handler.

returns:

breakpointID - Id of the created breakpoint for further reference.
actualLocation - Location this breakpoint resolved into.

func (SetBreakpointParams) MarshalEasyJSON

func (v SetBreakpointParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBreakpointParams) MarshalJSON

func (v SetBreakpointParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetBreakpointParams) UnmarshalEasyJSON

func (v *SetBreakpointParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBreakpointParams) UnmarshalJSON

func (v *SetBreakpointParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetBreakpointParams) WithCondition

func (p SetBreakpointParams) WithCondition(condition string) *SetBreakpointParams

WithCondition expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true.

type SetBreakpointReturns

type SetBreakpointReturns struct {
	BreakpointID   BreakpointID `json:"breakpointId,omitempty"`   // Id of the created breakpoint for further reference.
	ActualLocation *Location    `json:"actualLocation,omitempty"` // Location this breakpoint resolved into.
}

SetBreakpointReturns return values.

func (SetBreakpointReturns) MarshalEasyJSON

func (v SetBreakpointReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBreakpointReturns) MarshalJSON

func (v SetBreakpointReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetBreakpointReturns) UnmarshalEasyJSON

func (v *SetBreakpointReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBreakpointReturns) UnmarshalJSON

func (v *SetBreakpointReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetBreakpointsActiveParams

type SetBreakpointsActiveParams struct {
	Active bool `json:"active"` // New value for breakpoints active state.
}

SetBreakpointsActiveParams activates / deactivates all breakpoints on the page.

func SetBreakpointsActive

func SetBreakpointsActive(active bool) *SetBreakpointsActiveParams

SetBreakpointsActive activates / deactivates all breakpoints on the page.

parameters:

active - New value for breakpoints active state.

func (*SetBreakpointsActiveParams) Do

Do executes Debugger.setBreakpointsActive against the provided context and target handler.

func (SetBreakpointsActiveParams) MarshalEasyJSON

func (v SetBreakpointsActiveParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBreakpointsActiveParams) MarshalJSON

func (v SetBreakpointsActiveParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetBreakpointsActiveParams) UnmarshalEasyJSON

func (v *SetBreakpointsActiveParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBreakpointsActiveParams) UnmarshalJSON

func (v *SetBreakpointsActiveParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetPauseOnExceptionsParams

type SetPauseOnExceptionsParams struct {
	State ExceptionsState `json:"state"` // Pause on exceptions mode.
}

SetPauseOnExceptionsParams 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.

func SetPauseOnExceptions

func SetPauseOnExceptions(state ExceptionsState) *SetPauseOnExceptionsParams

SetPauseOnExceptions 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 - Pause on exceptions mode.

func (*SetPauseOnExceptionsParams) Do

Do executes Debugger.setPauseOnExceptions against the provided context and target handler.

func (SetPauseOnExceptionsParams) MarshalEasyJSON

func (v SetPauseOnExceptionsParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetPauseOnExceptionsParams) MarshalJSON

func (v SetPauseOnExceptionsParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetPauseOnExceptionsParams) UnmarshalEasyJSON

func (v *SetPauseOnExceptionsParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetPauseOnExceptionsParams) UnmarshalJSON

func (v *SetPauseOnExceptionsParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetScriptSourceParams

type SetScriptSourceParams struct {
	ScriptID     runtime.ScriptID `json:"scriptId"`         // Id of the script to edit.
	ScriptSource string           `json:"scriptSource"`     // New content of the script.
	DryRun       bool             `json:"dryRun,omitempty"` //  If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.
}

SetScriptSourceParams edits JavaScript source live.

func SetScriptSource

func SetScriptSource(scriptID runtime.ScriptID, scriptSource string) *SetScriptSourceParams

SetScriptSource edits JavaScript source live.

parameters:

scriptID - Id of the script to edit.
scriptSource - New content of the script.

func (*SetScriptSourceParams) Do

func (p *SetScriptSourceParams) Do(ctxt context.Context, h cdp.Handler) (callFrames []*CallFrame, stackChanged bool, asyncStackTrace *runtime.StackTrace, exceptionDetails *runtime.ExceptionDetails, err error)

Do executes Debugger.setScriptSource against the provided context and target handler.

returns:

callFrames - New stack trace in case editing has happened while VM was stopped.
stackChanged - Whether current call stack  was modified after applying the changes.
asyncStackTrace - Async stack trace, if any.
exceptionDetails - Exception details if any.

func (SetScriptSourceParams) MarshalEasyJSON

func (v SetScriptSourceParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetScriptSourceParams) MarshalJSON

func (v SetScriptSourceParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetScriptSourceParams) UnmarshalEasyJSON

func (v *SetScriptSourceParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetScriptSourceParams) UnmarshalJSON

func (v *SetScriptSourceParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

func (SetScriptSourceParams) WithDryRun

func (p SetScriptSourceParams) WithDryRun(dryRun bool) *SetScriptSourceParams

WithDryRun If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code.

type SetScriptSourceReturns

type SetScriptSourceReturns struct {
	CallFrames       []*CallFrame              `json:"callFrames,omitempty"`       // New stack trace in case editing has happened while VM was stopped.
	StackChanged     bool                      `json:"stackChanged,omitempty"`     // Whether current call stack  was modified after applying the changes.
	AsyncStackTrace  *runtime.StackTrace       `json:"asyncStackTrace,omitempty"`  // Async stack trace, if any.
	ExceptionDetails *runtime.ExceptionDetails `json:"exceptionDetails,omitempty"` // Exception details if any.
}

SetScriptSourceReturns return values.

func (SetScriptSourceReturns) MarshalEasyJSON

func (v SetScriptSourceReturns) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetScriptSourceReturns) MarshalJSON

func (v SetScriptSourceReturns) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetScriptSourceReturns) UnmarshalEasyJSON

func (v *SetScriptSourceReturns) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetScriptSourceReturns) UnmarshalJSON

func (v *SetScriptSourceReturns) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetSkipAllPausesParams

type SetSkipAllPausesParams struct {
	Skip bool `json:"skip"` // New value for skip pauses state.
}

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

func SetSkipAllPauses

func SetSkipAllPauses(skip bool) *SetSkipAllPausesParams

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

parameters:

skip - New value for skip pauses state.

func (*SetSkipAllPausesParams) Do

func (p *SetSkipAllPausesParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Debugger.setSkipAllPauses against the provided context and target handler.

func (SetSkipAllPausesParams) MarshalEasyJSON

func (v SetSkipAllPausesParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetSkipAllPausesParams) MarshalJSON

func (v SetSkipAllPausesParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetSkipAllPausesParams) UnmarshalEasyJSON

func (v *SetSkipAllPausesParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetSkipAllPausesParams) UnmarshalJSON

func (v *SetSkipAllPausesParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SetVariableValueParams

type SetVariableValueParams struct {
	ScopeNumber  int64                 `json:"scopeNumber"`  // 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually.
	VariableName string                `json:"variableName"` // Variable name.
	NewValue     *runtime.CallArgument `json:"newValue"`     // New variable value.
	CallFrameID  CallFrameID           `json:"callFrameId"`  // Id of callframe that holds variable.
}

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

func SetVariableValue

func SetVariableValue(scopeNumber int64, variableName string, newValue *runtime.CallArgument, callFrameID CallFrameID) *SetVariableValueParams

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

parameters:

scopeNumber - 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually.
variableName - Variable name.
newValue - New variable value.
callFrameID - Id of callframe that holds variable.

func (*SetVariableValueParams) Do

func (p *SetVariableValueParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Debugger.setVariableValue against the provided context and target handler.

func (SetVariableValueParams) MarshalEasyJSON

func (v SetVariableValueParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetVariableValueParams) MarshalJSON

func (v SetVariableValueParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SetVariableValueParams) UnmarshalEasyJSON

func (v *SetVariableValueParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetVariableValueParams) UnmarshalJSON

func (v *SetVariableValueParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StepIntoParams

type StepIntoParams struct{}

StepIntoParams steps into the function call.

func StepInto

func StepInto() *StepIntoParams

StepInto steps into the function call.

func (*StepIntoParams) Do

func (p *StepIntoParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Debugger.stepInto against the provided context and target handler.

func (StepIntoParams) MarshalEasyJSON

func (v StepIntoParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StepIntoParams) MarshalJSON

func (v StepIntoParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StepIntoParams) UnmarshalEasyJSON

func (v *StepIntoParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StepIntoParams) UnmarshalJSON

func (v *StepIntoParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StepOutParams

type StepOutParams struct{}

StepOutParams steps out of the function call.

func StepOut

func StepOut() *StepOutParams

StepOut steps out of the function call.

func (*StepOutParams) Do

func (p *StepOutParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Debugger.stepOut against the provided context and target handler.

func (StepOutParams) MarshalEasyJSON

func (v StepOutParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StepOutParams) MarshalJSON

func (v StepOutParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StepOutParams) UnmarshalEasyJSON

func (v *StepOutParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StepOutParams) UnmarshalJSON

func (v *StepOutParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type StepOverParams

type StepOverParams struct{}

StepOverParams steps over the statement.

func StepOver

func StepOver() *StepOverParams

StepOver steps over the statement.

func (*StepOverParams) Do

func (p *StepOverParams) Do(ctxt context.Context, h cdp.Handler) (err error)

Do executes Debugger.stepOver against the provided context and target handler.

func (StepOverParams) MarshalEasyJSON

func (v StepOverParams) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (StepOverParams) MarshalJSON

func (v StepOverParams) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*StepOverParams) UnmarshalEasyJSON

func (v *StepOverParams) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StepOverParams) UnmarshalJSON

func (v *StepOverParams) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL