cdproto: github.com/chromedp/cdproto/debugger Index | Files

package debugger

import "github.com/chromedp/cdproto/debugger"

Package debugger provides the Chrome DevTools 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 cdproto-gen command.

Index

Package Files

debugger.go easyjson.go events.go types.go

Constants

const (
    CommandContinueToLocation           = "Debugger.continueToLocation"
    CommandDisable                      = "Debugger.disable"
    CommandEnable                       = "Debugger.enable"
    CommandEvaluateOnCallFrame          = "Debugger.evaluateOnCallFrame"
    CommandGetPossibleBreakpoints       = "Debugger.getPossibleBreakpoints"
    CommandGetScriptSource              = "Debugger.getScriptSource"
    CommandGetStackTrace                = "Debugger.getStackTrace"
    CommandPause                        = "Debugger.pause"
    CommandRemoveBreakpoint             = "Debugger.removeBreakpoint"
    CommandRestartFrame                 = "Debugger.restartFrame"
    CommandResume                       = "Debugger.resume"
    CommandSearchInContent              = "Debugger.searchInContent"
    CommandSetAsyncCallStackDepth       = "Debugger.setAsyncCallStackDepth"
    CommandSetBlackboxPatterns          = "Debugger.setBlackboxPatterns"
    CommandSetBlackboxedRanges          = "Debugger.setBlackboxedRanges"
    CommandSetBreakpoint                = "Debugger.setBreakpoint"
    CommandSetInstrumentationBreakpoint = "Debugger.setInstrumentationBreakpoint"
    CommandSetBreakpointByURL           = "Debugger.setBreakpointByUrl"
    CommandSetBreakpointOnFunctionCall  = "Debugger.setBreakpointOnFunctionCall"
    CommandSetBreakpointsActive         = "Debugger.setBreakpointsActive"
    CommandSetPauseOnExceptions         = "Debugger.setPauseOnExceptions"
    CommandSetReturnValue               = "Debugger.setReturnValue"
    CommandSetScriptSource              = "Debugger.setScriptSource"
    CommandSetSkipAllPauses             = "Debugger.setSkipAllPauses"
    CommandSetVariableValue             = "Debugger.setVariableValue"
    CommandStepInto                     = "Debugger.stepInto"
    CommandStepOut                      = "Debugger.stepOut"
    CommandStepOver                     = "Debugger.stepOver"
)

Command names.

type BreakLocation Uses

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-BreakLocation

func (BreakLocation) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (BreakLocation) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*BreakLocation) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*BreakLocation) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type BreakLocationType Uses

type BreakLocationType string

BreakLocationType [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-BreakLocation

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

BreakLocationType values.

func (BreakLocationType) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (BreakLocationType) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (BreakLocationType) String Uses

func (t BreakLocationType) String() string

String returns the BreakLocationType as string value.

func (*BreakLocationType) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*BreakLocationType) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type BreakpointID Uses

type BreakpointID string

BreakpointID breakpoint identifier.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-BreakpointId

func (BreakpointID) String Uses

func (t BreakpointID) String() string

String returns the BreakpointID as string value.

type CallFrame Uses

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.
    URL              string                `json:"url"`                        // JavaScript script name or url.
    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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-CallFrame

func (CallFrame) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (CallFrame) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*CallFrame) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*CallFrame) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type CallFrameID Uses

type CallFrameID string

CallFrameID call frame identifier.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-CallFrameId

func (CallFrameID) String Uses

func (t CallFrameID) String() string

String returns the CallFrameID as string value.

type ContinueToLocationParams Uses

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 Uses

func ContinueToLocation(location *Location) *ContinueToLocationParams

ContinueToLocation continues execution until specific location is reached.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-continueToLocation

parameters:

location - Location to continue to.

func (*ContinueToLocationParams) Do Uses

func (p *ContinueToLocationParams) Do(ctx context.Context) (err error)

Do executes Debugger.continueToLocation against the provided context.

func (ContinueToLocationParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ContinueToLocationParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*ContinueToLocationParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ContinueToLocationParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (ContinueToLocationParams) WithTargetCallFrames Uses

func (p ContinueToLocationParams) WithTargetCallFrames(targetCallFrames ContinueToLocationTargetCallFrames) *ContinueToLocationParams

WithTargetCallFrames [no description].

type ContinueToLocationTargetCallFrames Uses

type ContinueToLocationTargetCallFrames string

ContinueToLocationTargetCallFrames [no description].

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-continueToLocation

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

ContinueToLocationTargetCallFrames values.

func (ContinueToLocationTargetCallFrames) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ContinueToLocationTargetCallFrames) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (ContinueToLocationTargetCallFrames) String Uses

func (t ContinueToLocationTargetCallFrames) String() string

String returns the ContinueToLocationTargetCallFrames as string value.

func (*ContinueToLocationTargetCallFrames) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ContinueToLocationTargetCallFrames) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type DebugSymbols Uses

type DebugSymbols struct {
    Type        DebugSymbolsType `json:"type"`                  // Type of the debug symbols.
    ExternalURL string           `json:"externalURL,omitempty"` // URL of the external symbol source.
}

DebugSymbols debug symbols available for a wasm script.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-DebugSymbols

func (DebugSymbols) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DebugSymbols) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*DebugSymbols) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DebugSymbols) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type DebugSymbolsType Uses

type DebugSymbolsType string

DebugSymbolsType type of the debug symbols.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-DebugSymbols

const (
    DebugSymbolsTypeNone          DebugSymbolsType = "None"
    DebugSymbolsTypeSourceMap     DebugSymbolsType = "SourceMap"
    DebugSymbolsTypeEmbeddedDWARF DebugSymbolsType = "EmbeddedDWARF"
    DebugSymbolsTypeExternalDWARF DebugSymbolsType = "ExternalDWARF"
)

DebugSymbolsType values.

func (DebugSymbolsType) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (DebugSymbolsType) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (DebugSymbolsType) String Uses

func (t DebugSymbolsType) String() string

String returns the DebugSymbolsType as string value.

func (*DebugSymbolsType) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*DebugSymbolsType) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type DisableParams Uses

type DisableParams struct{}

DisableParams disables debugger for given page.

func Disable Uses

func Disable() *DisableParams

Disable disables debugger for given page.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-disable

func (*DisableParams) Do Uses

func (p *DisableParams) Do(ctx context.Context) (err error)

Do executes Debugger.disable against the provided context.

func (DisableParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (DisableParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*DisableParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*DisableParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EnableParams Uses

type EnableParams struct {
    MaxScriptsCacheSize float64 `json:"maxScriptsCacheSize,omitempty"` // The maximum size in bytes of collected scripts (not referenced by other heap objects) the debugger can hold. Puts no limit if parameter is omitted.
}

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 Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-enable

parameters:

func (*EnableParams) Do Uses

func (p *EnableParams) Do(ctx context.Context) (debuggerID runtime.UniqueDebuggerID, err error)

Do executes Debugger.enable against the provided context.

returns:

debuggerID - Unique identifier of the debugger.

func (EnableParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EnableParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (EnableParams) WithMaxScriptsCacheSize Uses

func (p EnableParams) WithMaxScriptsCacheSize(maxScriptsCacheSize float64) *EnableParams

WithMaxScriptsCacheSize the maximum size in bytes of collected scripts (not referenced by other heap objects) the debugger can hold. Puts no limit if parameter is omitted.

type EnableReturns Uses

type EnableReturns struct {
    DebuggerID runtime.UniqueDebuggerID `json:"debuggerId,omitempty"` // Unique identifier of the debugger.
}

EnableReturns return values.

func (EnableReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EnableReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EnableReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EnableReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EvaluateOnCallFrameParams Uses

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.
    Timeout               runtime.TimeDelta `json:"timeout,omitempty"`               // Terminate execution after timing out (number of milliseconds).
}

EvaluateOnCallFrameParams evaluates expression on a given call frame.

func EvaluateOnCallFrame Uses

func EvaluateOnCallFrame(callFrameID CallFrameID, expression string) *EvaluateOnCallFrameParams

EvaluateOnCallFrame evaluates expression on a given call frame.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-evaluateOnCallFrame

parameters:

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

func (*EvaluateOnCallFrameParams) Do Uses

func (p *EvaluateOnCallFrameParams) Do(ctx context.Context) (result *runtime.RemoteObject, exceptionDetails *runtime.ExceptionDetails, err error)

Do executes Debugger.evaluateOnCallFrame against the provided context.

returns:

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

func (EvaluateOnCallFrameParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EvaluateOnCallFrameParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EvaluateOnCallFrameParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EvaluateOnCallFrameParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (EvaluateOnCallFrameParams) WithGeneratePreview Uses

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

WithGeneratePreview whether preview should be generated for the result.

func (EvaluateOnCallFrameParams) WithIncludeCommandLineAPI Uses

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 Uses

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 Uses

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 Uses

func (p EvaluateOnCallFrameParams) WithSilent(silent bool) *EvaluateOnCallFrameParams

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

func (EvaluateOnCallFrameParams) WithThrowOnSideEffect Uses

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

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

func (EvaluateOnCallFrameParams) WithTimeout Uses

func (p EvaluateOnCallFrameParams) WithTimeout(timeout runtime.TimeDelta) *EvaluateOnCallFrameParams

WithTimeout terminate execution after timing out (number of milliseconds).

type EvaluateOnCallFrameReturns Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EvaluateOnCallFrameReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EvaluateOnCallFrameReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EvaluateOnCallFrameReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventBreakpointResolved Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#event-breakpointResolved

func (EventBreakpointResolved) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventBreakpointResolved) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventBreakpointResolved) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventBreakpointResolved) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventPaused Uses

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.
    AsyncStackTraceID *runtime.StackTraceID `json:"asyncStackTraceId,omitempty"` // Async stack trace, if any.
}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#event-paused

func (EventPaused) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventPaused) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventPaused) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventPaused) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventResumed Uses

type EventResumed struct{}

EventResumed fired when the virtual machine resumed execution.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#event-resumed

func (EventResumed) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventResumed) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventResumed) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventResumed) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventScriptFailedToParse Uses

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.
    CodeOffset              int64                      `json:"codeOffset,omitempty"`     // If the scriptLanguage is WebAssembly, the code section offset in the module.
    ScriptLanguage          ScriptLanguage             `json:"scriptLanguage,omitempty"` // The language of the script.
    EmbedderName            string                     `json:"embedderName,omitempty"`   // The name the embedder supplied for this script.
}

EventScriptFailedToParse fired when virtual machine fails to parse the script.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#event-scriptFailedToParse

func (EventScriptFailedToParse) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventScriptFailedToParse) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventScriptFailedToParse) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventScriptFailedToParse) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type EventScriptParsed Uses

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.
    CodeOffset              int64                      `json:"codeOffset,omitempty"`     // If the scriptLanguage is WebAssembly, the code section offset in the module.
    ScriptLanguage          ScriptLanguage             `json:"scriptLanguage,omitempty"` // The language of the script.
    DebugSymbols            *DebugSymbols              `json:"debugSymbols,omitempty"`   // If the scriptLanguage is WebASsembly, the source of debug symbols for the module.
    EmbedderName            string                     `json:"embedderName,omitempty"`   // The name the embedder supplied for this script.
}

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#event-scriptParsed

func (EventScriptParsed) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventScriptParsed) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventScriptParsed) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventScriptParsed) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type ExceptionsState Uses

type ExceptionsState string

ExceptionsState pause on exceptions mode.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setPauseOnExceptions

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

ExceptionsState values.

func (ExceptionsState) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ExceptionsState) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (ExceptionsState) String Uses

func (t ExceptionsState) String() string

String returns the ExceptionsState as string value.

func (*ExceptionsState) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ExceptionsState) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type GetPossibleBreakpointsParams Uses

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 Uses

func GetPossibleBreakpoints(start *Location) *GetPossibleBreakpointsParams

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-getPossibleBreakpoints

parameters:

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

func (*GetPossibleBreakpointsParams) Do Uses

func (p *GetPossibleBreakpointsParams) Do(ctx context.Context) (locations []*BreakLocation, err error)

Do executes Debugger.getPossibleBreakpoints against the provided context.

returns:

locations - List of the possible breakpoint locations.

func (GetPossibleBreakpointsParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPossibleBreakpointsParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetPossibleBreakpointsParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPossibleBreakpointsParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (GetPossibleBreakpointsParams) WithEnd Uses

func (p GetPossibleBreakpointsParams) WithEnd(end *Location) *GetPossibleBreakpointsParams

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 Uses

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

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

type GetPossibleBreakpointsReturns Uses

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

GetPossibleBreakpointsReturns return values.

func (GetPossibleBreakpointsReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetPossibleBreakpointsReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetPossibleBreakpointsReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetPossibleBreakpointsReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetScriptSourceParams Uses

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 Uses

func GetScriptSource(scriptID runtime.ScriptID) *GetScriptSourceParams

GetScriptSource returns source for the script with given id.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-getScriptSource

parameters:

scriptID - Id of the script to get source for.

func (*GetScriptSourceParams) Do Uses

func (p *GetScriptSourceParams) Do(ctx context.Context) (scriptSource string, bytecode []byte, err error)

Do executes Debugger.getScriptSource against the provided context.

returns:

scriptSource - Script source (empty in case of Wasm bytecode).
bytecode - Wasm bytecode.

func (GetScriptSourceParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetScriptSourceParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetScriptSourceParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetScriptSourceParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetScriptSourceReturns Uses

type GetScriptSourceReturns struct {
    ScriptSource string `json:"scriptSource,omitempty"` // Script source (empty in case of Wasm bytecode).
    Bytecode     string `json:"bytecode,omitempty"`     // Wasm bytecode.
}

GetScriptSourceReturns return values.

func (GetScriptSourceReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetScriptSourceReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetScriptSourceReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetScriptSourceReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetStackTraceParams Uses

type GetStackTraceParams struct {
    StackTraceID *runtime.StackTraceID `json:"stackTraceId"`
}

GetStackTraceParams returns stack trace with given stackTraceId.

func GetStackTrace Uses

func GetStackTrace(stackTraceID *runtime.StackTraceID) *GetStackTraceParams

GetStackTrace returns stack trace with given stackTraceId.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-getStackTrace

parameters:

stackTraceID

func (*GetStackTraceParams) Do Uses

func (p *GetStackTraceParams) Do(ctx context.Context) (stackTrace *runtime.StackTrace, err error)

Do executes Debugger.getStackTrace against the provided context.

returns:

stackTrace

func (GetStackTraceParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetStackTraceParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetStackTraceParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetStackTraceParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetStackTraceReturns Uses

type GetStackTraceReturns struct {
    StackTrace *runtime.StackTrace `json:"stackTrace,omitempty"`
}

GetStackTraceReturns return values.

func (GetStackTraceReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetStackTraceReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetStackTraceReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetStackTraceReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type Location Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-Location

func (Location) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Location) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*Location) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Location) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type LocationRange Uses

type LocationRange struct {
    ScriptID runtime.ScriptID `json:"scriptId"`
    Start    *ScriptPosition  `json:"start"`
    End      *ScriptPosition  `json:"end"`
}

LocationRange location range within one script.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-LocationRange

func (LocationRange) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (LocationRange) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*LocationRange) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*LocationRange) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type PauseParams Uses

type PauseParams struct{}

PauseParams stops on the next JavaScript statement.

func Pause Uses

func Pause() *PauseParams

Pause stops on the next JavaScript statement.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-pause

func (*PauseParams) Do Uses

func (p *PauseParams) Do(ctx context.Context) (err error)

Do executes Debugger.pause against the provided context.

func (PauseParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (PauseParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*PauseParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*PauseParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type PausedReason Uses

type PausedReason string

PausedReason pause reason.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#event-paused

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

PausedReason values.

func (PausedReason) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (PausedReason) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (PausedReason) String Uses

func (t PausedReason) String() string

String returns the PausedReason as string value.

func (*PausedReason) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*PausedReason) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type RemoveBreakpointParams Uses

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

RemoveBreakpointParams removes JavaScript breakpoint.

func RemoveBreakpoint Uses

func RemoveBreakpoint(breakpointID BreakpointID) *RemoveBreakpointParams

RemoveBreakpoint removes JavaScript breakpoint.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-removeBreakpoint

parameters:

breakpointID

func (*RemoveBreakpointParams) Do Uses

func (p *RemoveBreakpointParams) Do(ctx context.Context) (err error)

Do executes Debugger.removeBreakpoint against the provided context.

func (RemoveBreakpointParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveBreakpointParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*RemoveBreakpointParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveBreakpointParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type RestartFrameParams Uses

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

RestartFrameParams restarts particular call frame from the beginning.

func RestartFrame Uses

func RestartFrame(callFrameID CallFrameID) *RestartFrameParams

RestartFrame restarts particular call frame from the beginning.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-restartFrame

parameters:

callFrameID - Call frame identifier to evaluate on.

func (*RestartFrameParams) Do Uses

func (p *RestartFrameParams) Do(ctx context.Context) (callFrames []*CallFrame, asyncStackTrace *runtime.StackTrace, asyncStackTraceID *runtime.StackTraceID, err error)

Do executes Debugger.restartFrame against the provided context.

returns:

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

func (RestartFrameParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (RestartFrameParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*RestartFrameParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RestartFrameParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type RestartFrameReturns Uses

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

RestartFrameReturns return values.

func (RestartFrameReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (RestartFrameReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*RestartFrameReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RestartFrameReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type ResumeParams Uses

type ResumeParams struct {
    TerminateOnResume bool `json:"terminateOnResume,omitempty"` // 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.
}

ResumeParams resumes JavaScript execution.

func Resume Uses

func Resume() *ResumeParams

Resume resumes JavaScript execution.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-resume

parameters:

func (*ResumeParams) Do Uses

func (p *ResumeParams) Do(ctx context.Context) (err error)

Do executes Debugger.resume against the provided context.

func (ResumeParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ResumeParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*ResumeParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ResumeParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (ResumeParams) WithTerminateOnResume Uses

func (p ResumeParams) WithTerminateOnResume(terminateOnResume bool) *ResumeParams

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

type Scope Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-Scope

func (Scope) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (Scope) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*Scope) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Scope) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type ScopeType Uses

type ScopeType string

ScopeType scope type.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-Scope

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"
    ScopeTypeWasmExpressionStack ScopeType = "wasm-expression-stack"
)

ScopeType values.

func (ScopeType) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ScopeType) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (ScopeType) String Uses

func (t ScopeType) String() string

String returns the ScopeType as string value.

func (*ScopeType) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ScopeType) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type ScriptLanguage Uses

type ScriptLanguage string

ScriptLanguage enum of possible script languages.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-ScriptLanguage

const (
    ScriptLanguageJavaScript  ScriptLanguage = "JavaScript"
    ScriptLanguageWebAssembly ScriptLanguage = "WebAssembly"
)

ScriptLanguage values.

func (ScriptLanguage) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (ScriptLanguage) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (ScriptLanguage) String Uses

func (t ScriptLanguage) String() string

String returns the ScriptLanguage as string value.

func (*ScriptLanguage) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*ScriptLanguage) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type ScriptPosition Uses

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

ScriptPosition location in the source code.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-ScriptPosition

func (ScriptPosition) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (ScriptPosition) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*ScriptPosition) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ScriptPosition) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SearchInContentParams Uses

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 Uses

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

SearchInContent searches for given string in script content.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-searchInContent

parameters:

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

func (*SearchInContentParams) Do Uses

func (p *SearchInContentParams) Do(ctx context.Context) (result []*SearchMatch, err error)

Do executes Debugger.searchInContent against the provided context.

returns:

result - List of search matches.

func (SearchInContentParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SearchInContentParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SearchInContentParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SearchInContentParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (SearchInContentParams) WithCaseSensitive Uses

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

WithCaseSensitive if true, search is case sensitive.

func (SearchInContentParams) WithIsRegex Uses

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

WithIsRegex if true, treats string parameter as regex.

type SearchInContentReturns Uses

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

SearchInContentReturns return values.

func (SearchInContentReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SearchInContentReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SearchInContentReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SearchInContentReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SearchMatch Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#type-SearchMatch

func (SearchMatch) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SearchMatch) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SearchMatch) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SearchMatch) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetAsyncCallStackDepthParams Uses

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 Uses

func SetAsyncCallStackDepth(maxDepth int64) *SetAsyncCallStackDepthParams

SetAsyncCallStackDepth enables or disables async call stacks tracking.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setAsyncCallStackDepth

parameters:

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

func (*SetAsyncCallStackDepthParams) Do Uses

func (p *SetAsyncCallStackDepthParams) Do(ctx context.Context) (err error)

Do executes Debugger.setAsyncCallStackDepth against the provided context.

func (SetAsyncCallStackDepthParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetAsyncCallStackDepthParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetAsyncCallStackDepthParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetAsyncCallStackDepthParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetBlackboxPatternsParams Uses

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 Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setBlackboxPatterns

parameters:

patterns - Array of regexps that will be used to check script url for blackbox state.

func (*SetBlackboxPatternsParams) Do Uses

func (p *SetBlackboxPatternsParams) Do(ctx context.Context) (err error)

Do executes Debugger.setBlackboxPatterns against the provided context.

func (SetBlackboxPatternsParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBlackboxPatternsParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetBlackboxPatternsParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBlackboxPatternsParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetBlackboxedRangesParams Uses

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 Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setBlackboxedRanges

parameters:

scriptID - Id of the script.
positions

func (*SetBlackboxedRangesParams) Do Uses

func (p *SetBlackboxedRangesParams) Do(ctx context.Context) (err error)

Do executes Debugger.setBlackboxedRanges against the provided context.

func (SetBlackboxedRangesParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBlackboxedRangesParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetBlackboxedRangesParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBlackboxedRangesParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetBreakpointByURLParams Uses

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.
    ScriptHash   string `json:"scriptHash,omitempty"`   // Script hash of the resources to set breakpoint on.
    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 Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setBreakpointByUrl

parameters:

lineNumber - Line number to set breakpoint at.

func (*SetBreakpointByURLParams) Do Uses

func (p *SetBreakpointByURLParams) Do(ctx context.Context) (breakpointID BreakpointID, locations []*Location, err error)

Do executes Debugger.setBreakpointByUrl against the provided context.

returns:

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

func (SetBreakpointByURLParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBreakpointByURLParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetBreakpointByURLParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBreakpointByURLParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetBreakpointByURLParams) WithColumnNumber Uses

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

WithColumnNumber offset in the line to set breakpoint at.

func (SetBreakpointByURLParams) WithCondition Uses

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) WithScriptHash Uses

func (p SetBreakpointByURLParams) WithScriptHash(scriptHash string) *SetBreakpointByURLParams

WithScriptHash script hash of the resources to set breakpoint on.

func (SetBreakpointByURLParams) WithURL Uses

func (p SetBreakpointByURLParams) WithURL(url string) *SetBreakpointByURLParams

WithURL URL of the resources to set breakpoint on.

func (SetBreakpointByURLParams) WithURLRegex Uses

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 Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBreakpointByURLReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetBreakpointByURLReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBreakpointByURLReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetBreakpointOnFunctionCallParams Uses

type SetBreakpointOnFunctionCallParams struct {
    ObjectID  runtime.RemoteObjectID `json:"objectId"`            // Function object id.
    Condition string                 `json:"condition,omitempty"` // Expression to use as a breakpoint condition. When specified, debugger will stop on the breakpoint if this expression evaluates to true.
}

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

func SetBreakpointOnFunctionCall Uses

func SetBreakpointOnFunctionCall(objectID runtime.RemoteObjectID) *SetBreakpointOnFunctionCallParams

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setBreakpointOnFunctionCall

parameters:

objectID - Function object id.

func (*SetBreakpointOnFunctionCallParams) Do Uses

func (p *SetBreakpointOnFunctionCallParams) Do(ctx context.Context) (breakpointID BreakpointID, err error)

Do executes Debugger.setBreakpointOnFunctionCall against the provided context.

returns:

breakpointID - Id of the created breakpoint for further reference.

func (SetBreakpointOnFunctionCallParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBreakpointOnFunctionCallParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetBreakpointOnFunctionCallParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBreakpointOnFunctionCallParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetBreakpointOnFunctionCallParams) WithCondition Uses

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

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

type SetBreakpointOnFunctionCallReturns Uses

type SetBreakpointOnFunctionCallReturns struct {
    BreakpointID BreakpointID `json:"breakpointId,omitempty"` // Id of the created breakpoint for further reference.
}

SetBreakpointOnFunctionCallReturns return values.

func (SetBreakpointOnFunctionCallReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBreakpointOnFunctionCallReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetBreakpointOnFunctionCallReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBreakpointOnFunctionCallReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetBreakpointParams Uses

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 Uses

func SetBreakpoint(location *Location) *SetBreakpointParams

SetBreakpoint sets JavaScript breakpoint at a given location.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setBreakpoint

parameters:

location - Location to set breakpoint in.

func (*SetBreakpointParams) Do Uses

func (p *SetBreakpointParams) Do(ctx context.Context) (breakpointID BreakpointID, actualLocation *Location, err error)

Do executes Debugger.setBreakpoint against the provided context.

returns:

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

func (SetBreakpointParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBreakpointParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetBreakpointParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBreakpointParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetBreakpointParams) WithCondition Uses

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 Uses

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 Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBreakpointReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetBreakpointReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBreakpointReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetBreakpointsActiveParams Uses

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

SetBreakpointsActiveParams activates / deactivates all breakpoints on the page.

func SetBreakpointsActive Uses

func SetBreakpointsActive(active bool) *SetBreakpointsActiveParams

SetBreakpointsActive activates / deactivates all breakpoints on the page.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setBreakpointsActive

parameters:

active - New value for breakpoints active state.

func (*SetBreakpointsActiveParams) Do Uses

func (p *SetBreakpointsActiveParams) Do(ctx context.Context) (err error)

Do executes Debugger.setBreakpointsActive against the provided context.

func (SetBreakpointsActiveParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBreakpointsActiveParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetBreakpointsActiveParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBreakpointsActiveParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetInstrumentationBreakpointInstrumentation Uses

type SetInstrumentationBreakpointInstrumentation string

SetInstrumentationBreakpointInstrumentation instrumentation name.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setInstrumentationBreakpoint

const (
    SetInstrumentationBreakpointInstrumentationBeforeScriptExecution              SetInstrumentationBreakpointInstrumentation = "beforeScriptExecution"
    SetInstrumentationBreakpointInstrumentationBeforeScriptWithSourceMapExecution SetInstrumentationBreakpointInstrumentation = "beforeScriptWithSourceMapExecution"
)

SetInstrumentationBreakpointInstrumentation values.

func (SetInstrumentationBreakpointInstrumentation) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (SetInstrumentationBreakpointInstrumentation) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (SetInstrumentationBreakpointInstrumentation) String Uses

func (t SetInstrumentationBreakpointInstrumentation) String() string

String returns the SetInstrumentationBreakpointInstrumentation as string value.

func (*SetInstrumentationBreakpointInstrumentation) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*SetInstrumentationBreakpointInstrumentation) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type SetInstrumentationBreakpointParams Uses

type SetInstrumentationBreakpointParams struct {
    Instrumentation SetInstrumentationBreakpointInstrumentation `json:"instrumentation"` // Instrumentation name.
}

SetInstrumentationBreakpointParams sets instrumentation breakpoint.

func SetInstrumentationBreakpoint Uses

func SetInstrumentationBreakpoint(instrumentation SetInstrumentationBreakpointInstrumentation) *SetInstrumentationBreakpointParams

SetInstrumentationBreakpoint sets instrumentation breakpoint.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setInstrumentationBreakpoint

parameters:

instrumentation - Instrumentation name.

func (*SetInstrumentationBreakpointParams) Do Uses

func (p *SetInstrumentationBreakpointParams) Do(ctx context.Context) (breakpointID BreakpointID, err error)

Do executes Debugger.setInstrumentationBreakpoint against the provided context.

returns:

breakpointID - Id of the created breakpoint for further reference.

func (SetInstrumentationBreakpointParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetInstrumentationBreakpointParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetInstrumentationBreakpointParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetInstrumentationBreakpointParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetInstrumentationBreakpointReturns Uses

type SetInstrumentationBreakpointReturns struct {
    BreakpointID BreakpointID `json:"breakpointId,omitempty"` // Id of the created breakpoint for further reference.
}

SetInstrumentationBreakpointReturns return values.

func (SetInstrumentationBreakpointReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetInstrumentationBreakpointReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetInstrumentationBreakpointReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetInstrumentationBreakpointReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetPauseOnExceptionsParams Uses

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 Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setPauseOnExceptions

parameters:

state - Pause on exceptions mode.

func (*SetPauseOnExceptionsParams) Do Uses

func (p *SetPauseOnExceptionsParams) Do(ctx context.Context) (err error)

Do executes Debugger.setPauseOnExceptions against the provided context.

func (SetPauseOnExceptionsParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetPauseOnExceptionsParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetPauseOnExceptionsParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetPauseOnExceptionsParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetReturnValueParams Uses

type SetReturnValueParams struct {
    NewValue *runtime.CallArgument `json:"newValue"` // New return value.
}

SetReturnValueParams changes return value in top frame. Available only at return break position.

func SetReturnValue Uses

func SetReturnValue(newValue *runtime.CallArgument) *SetReturnValueParams

SetReturnValue changes return value in top frame. Available only at return break position.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setReturnValue

parameters:

newValue - New return value.

func (*SetReturnValueParams) Do Uses

func (p *SetReturnValueParams) Do(ctx context.Context) (err error)

Do executes Debugger.setReturnValue against the provided context.

func (SetReturnValueParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetReturnValueParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetReturnValueParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetReturnValueParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetScriptSourceParams Uses

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 Uses

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

SetScriptSource edits JavaScript source live.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setScriptSource

parameters:

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

func (*SetScriptSourceParams) Do Uses

func (p *SetScriptSourceParams) Do(ctx context.Context) (callFrames []*CallFrame, stackChanged bool, asyncStackTrace *runtime.StackTrace, asyncStackTraceID *runtime.StackTraceID, exceptionDetails *runtime.ExceptionDetails, err error)

Do executes Debugger.setScriptSource against the provided context.

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.
asyncStackTraceID - Async stack trace, if any.
exceptionDetails - Exception details if any.

func (SetScriptSourceParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetScriptSourceParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetScriptSourceParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetScriptSourceParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetScriptSourceParams) WithDryRun Uses

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 Uses

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.
    AsyncStackTraceID *runtime.StackTraceID     `json:"asyncStackTraceId,omitempty"` // Async stack trace, if any.
    ExceptionDetails  *runtime.ExceptionDetails `json:"exceptionDetails,omitempty"`  // Exception details if any.
}

SetScriptSourceReturns return values.

func (SetScriptSourceReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetScriptSourceReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetScriptSourceReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetScriptSourceReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetSkipAllPausesParams Uses

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 Uses

func SetSkipAllPauses(skip bool) *SetSkipAllPausesParams

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

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setSkipAllPauses

parameters:

skip - New value for skip pauses state.

func (*SetSkipAllPausesParams) Do Uses

func (p *SetSkipAllPausesParams) Do(ctx context.Context) (err error)

Do executes Debugger.setSkipAllPauses against the provided context.

func (SetSkipAllPausesParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetSkipAllPausesParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetSkipAllPausesParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetSkipAllPausesParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetVariableValueParams Uses

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 Uses

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.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-setVariableValue

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 Uses

func (p *SetVariableValueParams) Do(ctx context.Context) (err error)

Do executes Debugger.setVariableValue against the provided context.

func (SetVariableValueParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetVariableValueParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetVariableValueParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetVariableValueParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type StepIntoParams Uses

type StepIntoParams struct {
    BreakOnAsyncCall bool             `json:"breakOnAsyncCall,omitempty"` // Debugger will pause on the execution of the first async task which was scheduled before next pause.
    SkipList         []*LocationRange `json:"skipList,omitempty"`         // The skipList specifies location ranges that should be skipped on step into.
}

StepIntoParams steps into the function call.

func StepInto Uses

func StepInto() *StepIntoParams

StepInto steps into the function call.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-stepInto

parameters:

func (*StepIntoParams) Do Uses

func (p *StepIntoParams) Do(ctx context.Context) (err error)

Do executes Debugger.stepInto against the provided context.

func (StepIntoParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StepIntoParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*StepIntoParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StepIntoParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (StepIntoParams) WithBreakOnAsyncCall Uses

func (p StepIntoParams) WithBreakOnAsyncCall(breakOnAsyncCall bool) *StepIntoParams

WithBreakOnAsyncCall debugger will pause on the execution of the first async task which was scheduled before next pause.

func (StepIntoParams) WithSkipList Uses

func (p StepIntoParams) WithSkipList(skipList []*LocationRange) *StepIntoParams

WithSkipList the skipList specifies location ranges that should be skipped on step into.

type StepOutParams Uses

type StepOutParams struct{}

StepOutParams steps out of the function call.

func StepOut Uses

func StepOut() *StepOutParams

StepOut steps out of the function call.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-stepOut

func (*StepOutParams) Do Uses

func (p *StepOutParams) Do(ctx context.Context) (err error)

Do executes Debugger.stepOut against the provided context.

func (StepOutParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StepOutParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*StepOutParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StepOutParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type StepOverParams Uses

type StepOverParams struct {
    SkipList []*LocationRange `json:"skipList,omitempty"` // The skipList specifies location ranges that should be skipped on step over.
}

StepOverParams steps over the statement.

func StepOver Uses

func StepOver() *StepOverParams

StepOver steps over the statement.

See: https://chromedevtools.github.io/devtools-protocol/tot/Debugger#method-stepOver

parameters:

func (*StepOverParams) Do Uses

func (p *StepOverParams) Do(ctx context.Context) (err error)

Do executes Debugger.stepOver against the provided context.

func (StepOverParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (StepOverParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*StepOverParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*StepOverParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (StepOverParams) WithSkipList Uses

func (p StepOverParams) WithSkipList(skipList []*LocationRange) *StepOverParams

WithSkipList the skipList specifies location ranges that should be skipped on step over.

Package debugger imports 9 packages (graph) and is imported by 13 packages. Updated 2021-01-11. Refresh now. Tools for package owners.