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

package domdebugger

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

Package domdebugger provides the Chrome DevTools Protocol commands, types, and events for the DOMDebugger domain.

DOM debugging allows setting breakpoints on particular DOM operations and events. JavaScript execution will stop on these operations as if there was a regular breakpoint set.

Generated by the cdproto-gen command.

Index

Package Files

domdebugger.go easyjson.go types.go

Constants

const (
    CommandGetEventListeners               = "DOMDebugger.getEventListeners"
    CommandRemoveDOMBreakpoint             = "DOMDebugger.removeDOMBreakpoint"
    CommandRemoveEventListenerBreakpoint   = "DOMDebugger.removeEventListenerBreakpoint"
    CommandRemoveInstrumentationBreakpoint = "DOMDebugger.removeInstrumentationBreakpoint"
    CommandRemoveXHRBreakpoint             = "DOMDebugger.removeXHRBreakpoint"
    CommandSetBreakOnCSPViolation          = "DOMDebugger.setBreakOnCSPViolation"
    CommandSetDOMBreakpoint                = "DOMDebugger.setDOMBreakpoint"
    CommandSetEventListenerBreakpoint      = "DOMDebugger.setEventListenerBreakpoint"
    CommandSetInstrumentationBreakpoint    = "DOMDebugger.setInstrumentationBreakpoint"
    CommandSetXHRBreakpoint                = "DOMDebugger.setXHRBreakpoint"
)

Command names.

type CSPViolationType Uses

type CSPViolationType string

CSPViolationType cSP Violation type.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#type-CSPViolationType

const (
    CSPViolationTypeTrustedtypeSinkViolation   CSPViolationType = "trustedtype-sink-violation"
    CSPViolationTypeTrustedtypePolicyViolation CSPViolationType = "trustedtype-policy-violation"
)

CSPViolationType values.

func (CSPViolationType) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (CSPViolationType) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (CSPViolationType) String Uses

func (t CSPViolationType) String() string

String returns the CSPViolationType as string value.

func (*CSPViolationType) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*CSPViolationType) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type DOMBreakpointType Uses

type DOMBreakpointType string

DOMBreakpointType DOM breakpoint type.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#type-DOMBreakpointType

const (
    DOMBreakpointTypeSubtreeModified   DOMBreakpointType = "subtree-modified"
    DOMBreakpointTypeAttributeModified DOMBreakpointType = "attribute-modified"
    DOMBreakpointTypeNodeRemoved       DOMBreakpointType = "node-removed"
)

DOMBreakpointType values.

func (DOMBreakpointType) MarshalEasyJSON Uses

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

MarshalEasyJSON satisfies easyjson.Marshaler.

func (DOMBreakpointType) MarshalJSON Uses

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

MarshalJSON satisfies json.Marshaler.

func (DOMBreakpointType) String Uses

func (t DOMBreakpointType) String() string

String returns the DOMBreakpointType as string value.

func (*DOMBreakpointType) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON satisfies easyjson.Unmarshaler.

func (*DOMBreakpointType) UnmarshalJSON Uses

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

UnmarshalJSON satisfies json.Unmarshaler.

type EventListener Uses

type EventListener struct {
    Type            string                `json:"type"`                      // EventListener's type.
    UseCapture      bool                  `json:"useCapture"`                // EventListener's useCapture.
    Passive         bool                  `json:"passive"`                   // EventListener's passive flag.
    Once            bool                  `json:"once"`                      // EventListener's once flag.
    ScriptID        runtime.ScriptID      `json:"scriptId"`                  // Script id of the handler code.
    LineNumber      int64                 `json:"lineNumber"`                // Line number in the script (0-based).
    ColumnNumber    int64                 `json:"columnNumber"`              // Column number in the script (0-based).
    Handler         *runtime.RemoteObject `json:"handler,omitempty"`         // Event handler function value.
    OriginalHandler *runtime.RemoteObject `json:"originalHandler,omitempty"` // Event original handler function value.
    BackendNodeID   cdp.BackendNodeID     `json:"backendNodeId,omitempty"`   // Node the listener is added to (if any).
}

EventListener object event listener.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#type-EventListener

func (EventListener) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (EventListener) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*EventListener) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*EventListener) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type GetEventListenersParams Uses

type GetEventListenersParams struct {
    ObjectID runtime.RemoteObjectID `json:"objectId"`         // Identifier of the object to return listeners for.
    Depth    int64                  `json:"depth,omitempty"`  // The maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.
    Pierce   bool                   `json:"pierce,omitempty"` // Whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). Reports listeners for all contexts if pierce is enabled.
}

GetEventListenersParams returns event listeners of the given object.

func GetEventListeners Uses

func GetEventListeners(objectID runtime.RemoteObjectID) *GetEventListenersParams

GetEventListeners returns event listeners of the given object.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#method-getEventListeners

parameters:

objectID - Identifier of the object to return listeners for.

func (*GetEventListenersParams) Do Uses

func (p *GetEventListenersParams) Do(ctx context.Context) (listeners []*EventListener, err error)

Do executes DOMDebugger.getEventListeners against the provided context.

returns:

listeners - Array of relevant listeners.

func (GetEventListenersParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetEventListenersParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetEventListenersParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetEventListenersParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (GetEventListenersParams) WithDepth Uses

func (p GetEventListenersParams) WithDepth(depth int64) *GetEventListenersParams

WithDepth the maximum depth at which Node children should be retrieved, defaults to 1. Use -1 for the entire subtree or provide an integer larger than 0.

func (GetEventListenersParams) WithPierce Uses

func (p GetEventListenersParams) WithPierce(pierce bool) *GetEventListenersParams

WithPierce whether or not iframes and shadow roots should be traversed when returning the subtree (default is false). Reports listeners for all contexts if pierce is enabled.

type GetEventListenersReturns Uses

type GetEventListenersReturns struct {
    Listeners []*EventListener `json:"listeners,omitempty"` // Array of relevant listeners.
}

GetEventListenersReturns return values.

func (GetEventListenersReturns) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (GetEventListenersReturns) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*GetEventListenersReturns) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GetEventListenersReturns) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type RemoveDOMBreakpointParams Uses

type RemoveDOMBreakpointParams struct {
    NodeID cdp.NodeID        `json:"nodeId"` // Identifier of the node to remove breakpoint from.
    Type   DOMBreakpointType `json:"type"`   // Type of the breakpoint to remove.
}

RemoveDOMBreakpointParams removes DOM breakpoint that was set using setDOMBreakpoint.

func RemoveDOMBreakpoint Uses

func RemoveDOMBreakpoint(nodeID cdp.NodeID, typeVal DOMBreakpointType) *RemoveDOMBreakpointParams

RemoveDOMBreakpoint removes DOM breakpoint that was set using setDOMBreakpoint.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#method-removeDOMBreakpoint

parameters:

nodeID - Identifier of the node to remove breakpoint from.
type - Type of the breakpoint to remove.

func (*RemoveDOMBreakpointParams) Do Uses

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

Do executes DOMDebugger.removeDOMBreakpoint against the provided context.

func (RemoveDOMBreakpointParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveDOMBreakpointParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*RemoveDOMBreakpointParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveDOMBreakpointParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type RemoveEventListenerBreakpointParams Uses

type RemoveEventListenerBreakpointParams struct {
    EventName  string `json:"eventName"`            // Event name.
    TargetName string `json:"targetName,omitempty"` // EventTarget interface name.
}

RemoveEventListenerBreakpointParams removes breakpoint on particular DOM event.

func RemoveEventListenerBreakpoint Uses

func RemoveEventListenerBreakpoint(eventName string) *RemoveEventListenerBreakpointParams

RemoveEventListenerBreakpoint removes breakpoint on particular DOM event.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#method-removeEventListenerBreakpoint

parameters:

eventName - Event name.

func (*RemoveEventListenerBreakpointParams) Do Uses

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

Do executes DOMDebugger.removeEventListenerBreakpoint against the provided context.

func (RemoveEventListenerBreakpointParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveEventListenerBreakpointParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*RemoveEventListenerBreakpointParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveEventListenerBreakpointParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (RemoveEventListenerBreakpointParams) WithTargetName Uses

func (p RemoveEventListenerBreakpointParams) WithTargetName(targetName string) *RemoveEventListenerBreakpointParams

WithTargetName eventTarget interface name.

type RemoveInstrumentationBreakpointParams Uses

type RemoveInstrumentationBreakpointParams struct {
    EventName string `json:"eventName"` // Instrumentation name to stop on.
}

RemoveInstrumentationBreakpointParams removes breakpoint on particular native event.

func RemoveInstrumentationBreakpoint Uses

func RemoveInstrumentationBreakpoint(eventName string) *RemoveInstrumentationBreakpointParams

RemoveInstrumentationBreakpoint removes breakpoint on particular native event.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#method-removeInstrumentationBreakpoint

parameters:

eventName - Instrumentation name to stop on.

func (*RemoveInstrumentationBreakpointParams) Do Uses

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

Do executes DOMDebugger.removeInstrumentationBreakpoint against the provided context.

func (RemoveInstrumentationBreakpointParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveInstrumentationBreakpointParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*RemoveInstrumentationBreakpointParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveInstrumentationBreakpointParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type RemoveXHRBreakpointParams Uses

type RemoveXHRBreakpointParams struct {
    URL string `json:"url"` // Resource URL substring.
}

RemoveXHRBreakpointParams removes breakpoint from XMLHttpRequest.

func RemoveXHRBreakpoint Uses

func RemoveXHRBreakpoint(url string) *RemoveXHRBreakpointParams

RemoveXHRBreakpoint removes breakpoint from XMLHttpRequest.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#method-removeXHRBreakpoint

parameters:

url - Resource URL substring.

func (*RemoveXHRBreakpointParams) Do Uses

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

Do executes DOMDebugger.removeXHRBreakpoint against the provided context.

func (RemoveXHRBreakpointParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (RemoveXHRBreakpointParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*RemoveXHRBreakpointParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*RemoveXHRBreakpointParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetBreakOnCSPViolationParams Uses

type SetBreakOnCSPViolationParams struct {
    ViolationTypes []CSPViolationType `json:"violationTypes"` // CSP Violations to stop upon.
}

SetBreakOnCSPViolationParams sets breakpoint on particular CSP violations.

func SetBreakOnCSPViolation Uses

func SetBreakOnCSPViolation(violationTypes []CSPViolationType) *SetBreakOnCSPViolationParams

SetBreakOnCSPViolation sets breakpoint on particular CSP violations.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#method-setBreakOnCSPViolation

parameters:

violationTypes - CSP Violations to stop upon.

func (*SetBreakOnCSPViolationParams) Do Uses

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

Do executes DOMDebugger.setBreakOnCSPViolation against the provided context.

func (SetBreakOnCSPViolationParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetBreakOnCSPViolationParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetBreakOnCSPViolationParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetBreakOnCSPViolationParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetDOMBreakpointParams Uses

type SetDOMBreakpointParams struct {
    NodeID cdp.NodeID        `json:"nodeId"` // Identifier of the node to set breakpoint on.
    Type   DOMBreakpointType `json:"type"`   // Type of the operation to stop upon.
}

SetDOMBreakpointParams sets breakpoint on particular operation with DOM.

func SetDOMBreakpoint Uses

func SetDOMBreakpoint(nodeID cdp.NodeID, typeVal DOMBreakpointType) *SetDOMBreakpointParams

SetDOMBreakpoint sets breakpoint on particular operation with DOM.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#method-setDOMBreakpoint

parameters:

nodeID - Identifier of the node to set breakpoint on.
type - Type of the operation to stop upon.

func (*SetDOMBreakpointParams) Do Uses

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

Do executes DOMDebugger.setDOMBreakpoint against the provided context.

func (SetDOMBreakpointParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetDOMBreakpointParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetDOMBreakpointParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetDOMBreakpointParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

type SetEventListenerBreakpointParams Uses

type SetEventListenerBreakpointParams struct {
    EventName  string `json:"eventName"`            // DOM Event name to stop on (any DOM event will do).
    TargetName string `json:"targetName,omitempty"` // EventTarget interface name to stop on. If equal to "*" or not provided, will stop on any EventTarget.
}

SetEventListenerBreakpointParams sets breakpoint on particular DOM event.

func SetEventListenerBreakpoint Uses

func SetEventListenerBreakpoint(eventName string) *SetEventListenerBreakpointParams

SetEventListenerBreakpoint sets breakpoint on particular DOM event.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#method-setEventListenerBreakpoint

parameters:

eventName - DOM Event name to stop on (any DOM event will do).

func (*SetEventListenerBreakpointParams) Do Uses

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

Do executes DOMDebugger.setEventListenerBreakpoint against the provided context.

func (SetEventListenerBreakpointParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetEventListenerBreakpointParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetEventListenerBreakpointParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetEventListenerBreakpointParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

func (SetEventListenerBreakpointParams) WithTargetName Uses

func (p SetEventListenerBreakpointParams) WithTargetName(targetName string) *SetEventListenerBreakpointParams

WithTargetName eventTarget interface name to stop on. If equal to "*" or not provided, will stop on any EventTarget.

type SetInstrumentationBreakpointParams Uses

type SetInstrumentationBreakpointParams struct {
    EventName string `json:"eventName"` // Instrumentation name to stop on.
}

SetInstrumentationBreakpointParams sets breakpoint on particular native event.

func SetInstrumentationBreakpoint Uses

func SetInstrumentationBreakpoint(eventName string) *SetInstrumentationBreakpointParams

SetInstrumentationBreakpoint sets breakpoint on particular native event.

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

parameters:

eventName - Instrumentation name to stop on.

func (*SetInstrumentationBreakpointParams) Do Uses

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

Do executes DOMDebugger.setInstrumentationBreakpoint against the provided context.

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 SetXHRBreakpointParams Uses

type SetXHRBreakpointParams struct {
    URL string `json:"url"` // Resource URL substring. All XHRs having this substring in the URL will get stopped upon.
}

SetXHRBreakpointParams sets breakpoint on XMLHttpRequest.

func SetXHRBreakpoint Uses

func SetXHRBreakpoint(url string) *SetXHRBreakpointParams

SetXHRBreakpoint sets breakpoint on XMLHttpRequest.

See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#method-setXHRBreakpoint

parameters:

url - Resource URL substring. All XHRs having this substring in the URL will get stopped upon.

func (*SetXHRBreakpointParams) Do Uses

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

Do executes DOMDebugger.setXHRBreakpoint against the provided context.

func (SetXHRBreakpointParams) MarshalEasyJSON Uses

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

MarshalEasyJSON supports easyjson.Marshaler interface

func (SetXHRBreakpointParams) MarshalJSON Uses

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

MarshalJSON supports json.Marshaler interface

func (*SetXHRBreakpointParams) UnmarshalEasyJSON Uses

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

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SetXHRBreakpointParams) UnmarshalJSON Uses

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

UnmarshalJSON supports json.Unmarshaler interface

Package domdebugger imports 8 packages (graph) and is imported by 5 packages. Updated 2021-01-07. Refresh now. Tools for package owners.