package domdebugger
Import Path
github.com/chromedp/cdproto/domdebugger (on go.dev)
Dependency Relation
imports 8 packages, and imported by 2 packages
Involved Source Files
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.
easyjson.go
types.go
Package-Level Type Names (total 12)
CSPViolationType cSP Violation type.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#type-CSPViolationType
MarshalEasyJSON satisfies easyjson.Marshaler.
MarshalJSON satisfies json.Marshaler.
String returns the CSPViolationType as string value.
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalJSON satisfies json.Unmarshaler.
CSPViolationType : github.com/goccy/go-json.Marshaler
*CSPViolationType : github.com/goccy/go-json.Unmarshaler
CSPViolationType : github.com/mailru/easyjson.Marshaler
*CSPViolationType : github.com/mailru/easyjson.MarshalerUnmarshaler
*CSPViolationType : github.com/mailru/easyjson.Unmarshaler
CSPViolationType : encoding/json.Marshaler
*CSPViolationType : encoding/json.Unmarshaler
CSPViolationType : expvar.Var
CSPViolationType : fmt.Stringer
func SetBreakOnCSPViolation(violationTypes []CSPViolationType) *SetBreakOnCSPViolationParams
const CSPViolationTypeTrustedtypePolicyViolation
const CSPViolationTypeTrustedtypeSinkViolation
DOMBreakpointType DOM breakpoint type.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#type-DOMBreakpointType
MarshalEasyJSON satisfies easyjson.Marshaler.
MarshalJSON satisfies json.Marshaler.
String returns the DOMBreakpointType as string value.
UnmarshalEasyJSON satisfies easyjson.Unmarshaler.
UnmarshalJSON satisfies json.Unmarshaler.
DOMBreakpointType : github.com/goccy/go-json.Marshaler
*DOMBreakpointType : github.com/goccy/go-json.Unmarshaler
DOMBreakpointType : github.com/mailru/easyjson.Marshaler
*DOMBreakpointType : github.com/mailru/easyjson.MarshalerUnmarshaler
*DOMBreakpointType : github.com/mailru/easyjson.Unmarshaler
DOMBreakpointType : encoding/json.Marshaler
*DOMBreakpointType : encoding/json.Unmarshaler
DOMBreakpointType : expvar.Var
DOMBreakpointType : fmt.Stringer
func RemoveDOMBreakpoint(nodeID cdp.NodeID, typeVal DOMBreakpointType) *RemoveDOMBreakpointParams
func SetDOMBreakpoint(nodeID cdp.NodeID, typeVal DOMBreakpointType) *SetDOMBreakpointParams
const DOMBreakpointTypeAttributeModified
const DOMBreakpointTypeNodeRemoved
const DOMBreakpointTypeSubtreeModified
EventListener object event listener.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#type-EventListener
// Node the listener is added to (if any).
// Column number in the script (0-based).
// Event handler function value.
// Line number in the script (0-based).
// EventListener's once flag.
// Event original handler function value.
// EventListener's passive flag.
// Script id of the handler code.
// EventListener's type.
// EventListener's useCapture.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
EventListener : github.com/goccy/go-json.Marshaler
*EventListener : github.com/goccy/go-json.Unmarshaler
EventListener : github.com/mailru/easyjson.Marshaler
*EventListener : github.com/mailru/easyjson.MarshalerUnmarshaler
*EventListener : github.com/mailru/easyjson.Unmarshaler
EventListener : encoding/json.Marshaler
*EventListener : encoding/json.Unmarshaler
func (*GetEventListenersParams).Do(ctx context.Context) (listeners []*EventListener, err error)
GetEventListenersParams returns event listeners of the given object.
// 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.
// Identifier of the object to return listeners for.
// 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.
Do executes DOMDebugger.getEventListeners against the provided context.
returns:
listeners - Array of relevant listeners.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
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.
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.
GetEventListenersParams : github.com/goccy/go-json.Marshaler
*GetEventListenersParams : github.com/goccy/go-json.Unmarshaler
GetEventListenersParams : github.com/mailru/easyjson.Marshaler
*GetEventListenersParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetEventListenersParams : github.com/mailru/easyjson.Unmarshaler
GetEventListenersParams : encoding/json.Marshaler
*GetEventListenersParams : encoding/json.Unmarshaler
func GetEventListeners(objectID runtime.RemoteObjectID) *GetEventListenersParams
func GetEventListenersParams.WithDepth(depth int64) *GetEventListenersParams
func GetEventListenersParams.WithPierce(pierce bool) *GetEventListenersParams
GetEventListenersReturns return values.
// Array of relevant listeners.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
GetEventListenersReturns : github.com/goccy/go-json.Marshaler
*GetEventListenersReturns : github.com/goccy/go-json.Unmarshaler
GetEventListenersReturns : github.com/mailru/easyjson.Marshaler
*GetEventListenersReturns : github.com/mailru/easyjson.MarshalerUnmarshaler
*GetEventListenersReturns : github.com/mailru/easyjson.Unmarshaler
GetEventListenersReturns : encoding/json.Marshaler
*GetEventListenersReturns : encoding/json.Unmarshaler
RemoveDOMBreakpointParams removes DOM breakpoint that was set using
setDOMBreakpoint.
// Identifier of the node to remove breakpoint from.
// Type of the breakpoint to remove.
Do executes DOMDebugger.removeDOMBreakpoint against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*RemoveDOMBreakpointParams : github.com/chromedp/chromedp.Action
*RemoveDOMBreakpointParams : github.com/chromedp/chromedp.CallAction
*RemoveDOMBreakpointParams : github.com/chromedp/chromedp.EmulateAction
*RemoveDOMBreakpointParams : github.com/chromedp/chromedp.EvaluateAction
*RemoveDOMBreakpointParams : github.com/chromedp/chromedp.KeyAction
*RemoveDOMBreakpointParams : github.com/chromedp/chromedp.MouseAction
*RemoveDOMBreakpointParams : github.com/chromedp/chromedp.NavigateAction
*RemoveDOMBreakpointParams : github.com/chromedp/chromedp.PollAction
*RemoveDOMBreakpointParams : github.com/chromedp/chromedp.QueryAction
RemoveDOMBreakpointParams : github.com/goccy/go-json.Marshaler
*RemoveDOMBreakpointParams : github.com/goccy/go-json.Unmarshaler
RemoveDOMBreakpointParams : github.com/mailru/easyjson.Marshaler
*RemoveDOMBreakpointParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*RemoveDOMBreakpointParams : github.com/mailru/easyjson.Unmarshaler
RemoveDOMBreakpointParams : encoding/json.Marshaler
*RemoveDOMBreakpointParams : encoding/json.Unmarshaler
func RemoveDOMBreakpoint(nodeID cdp.NodeID, typeVal DOMBreakpointType) *RemoveDOMBreakpointParams
RemoveEventListenerBreakpointParams removes breakpoint on particular DOM
event.
// Event name.
// EventTarget interface name.
Do executes DOMDebugger.removeEventListenerBreakpoint against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
WithTargetName eventTarget interface name.
*RemoveEventListenerBreakpointParams : github.com/chromedp/chromedp.Action
*RemoveEventListenerBreakpointParams : github.com/chromedp/chromedp.CallAction
*RemoveEventListenerBreakpointParams : github.com/chromedp/chromedp.EmulateAction
*RemoveEventListenerBreakpointParams : github.com/chromedp/chromedp.EvaluateAction
*RemoveEventListenerBreakpointParams : github.com/chromedp/chromedp.KeyAction
*RemoveEventListenerBreakpointParams : github.com/chromedp/chromedp.MouseAction
*RemoveEventListenerBreakpointParams : github.com/chromedp/chromedp.NavigateAction
*RemoveEventListenerBreakpointParams : github.com/chromedp/chromedp.PollAction
*RemoveEventListenerBreakpointParams : github.com/chromedp/chromedp.QueryAction
RemoveEventListenerBreakpointParams : github.com/goccy/go-json.Marshaler
*RemoveEventListenerBreakpointParams : github.com/goccy/go-json.Unmarshaler
RemoveEventListenerBreakpointParams : github.com/mailru/easyjson.Marshaler
*RemoveEventListenerBreakpointParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*RemoveEventListenerBreakpointParams : github.com/mailru/easyjson.Unmarshaler
RemoveEventListenerBreakpointParams : encoding/json.Marshaler
*RemoveEventListenerBreakpointParams : encoding/json.Unmarshaler
func RemoveEventListenerBreakpoint(eventName string) *RemoveEventListenerBreakpointParams
func RemoveEventListenerBreakpointParams.WithTargetName(targetName string) *RemoveEventListenerBreakpointParams
RemoveXHRBreakpointParams removes breakpoint from XMLHttpRequest.
// Resource URL substring.
Do executes DOMDebugger.removeXHRBreakpoint against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*RemoveXHRBreakpointParams : github.com/chromedp/chromedp.Action
*RemoveXHRBreakpointParams : github.com/chromedp/chromedp.CallAction
*RemoveXHRBreakpointParams : github.com/chromedp/chromedp.EmulateAction
*RemoveXHRBreakpointParams : github.com/chromedp/chromedp.EvaluateAction
*RemoveXHRBreakpointParams : github.com/chromedp/chromedp.KeyAction
*RemoveXHRBreakpointParams : github.com/chromedp/chromedp.MouseAction
*RemoveXHRBreakpointParams : github.com/chromedp/chromedp.NavigateAction
*RemoveXHRBreakpointParams : github.com/chromedp/chromedp.PollAction
*RemoveXHRBreakpointParams : github.com/chromedp/chromedp.QueryAction
RemoveXHRBreakpointParams : github.com/goccy/go-json.Marshaler
*RemoveXHRBreakpointParams : github.com/goccy/go-json.Unmarshaler
RemoveXHRBreakpointParams : github.com/mailru/easyjson.Marshaler
*RemoveXHRBreakpointParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*RemoveXHRBreakpointParams : github.com/mailru/easyjson.Unmarshaler
RemoveXHRBreakpointParams : encoding/json.Marshaler
*RemoveXHRBreakpointParams : encoding/json.Unmarshaler
func RemoveXHRBreakpoint(url string) *RemoveXHRBreakpointParams
SetBreakOnCSPViolationParams sets breakpoint on particular CSP violations.
// CSP Violations to stop upon.
Do executes DOMDebugger.setBreakOnCSPViolation against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*SetBreakOnCSPViolationParams : github.com/chromedp/chromedp.Action
*SetBreakOnCSPViolationParams : github.com/chromedp/chromedp.CallAction
*SetBreakOnCSPViolationParams : github.com/chromedp/chromedp.EmulateAction
*SetBreakOnCSPViolationParams : github.com/chromedp/chromedp.EvaluateAction
*SetBreakOnCSPViolationParams : github.com/chromedp/chromedp.KeyAction
*SetBreakOnCSPViolationParams : github.com/chromedp/chromedp.MouseAction
*SetBreakOnCSPViolationParams : github.com/chromedp/chromedp.NavigateAction
*SetBreakOnCSPViolationParams : github.com/chromedp/chromedp.PollAction
*SetBreakOnCSPViolationParams : github.com/chromedp/chromedp.QueryAction
SetBreakOnCSPViolationParams : github.com/goccy/go-json.Marshaler
*SetBreakOnCSPViolationParams : github.com/goccy/go-json.Unmarshaler
SetBreakOnCSPViolationParams : github.com/mailru/easyjson.Marshaler
*SetBreakOnCSPViolationParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetBreakOnCSPViolationParams : github.com/mailru/easyjson.Unmarshaler
SetBreakOnCSPViolationParams : encoding/json.Marshaler
*SetBreakOnCSPViolationParams : encoding/json.Unmarshaler
func SetBreakOnCSPViolation(violationTypes []CSPViolationType) *SetBreakOnCSPViolationParams
SetDOMBreakpointParams sets breakpoint on particular operation with DOM.
// Identifier of the node to remove breakpoint from.
// Type of the breakpoint to remove.
Do executes DOMDebugger.setDOMBreakpoint against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*SetDOMBreakpointParams : github.com/chromedp/chromedp.Action
*SetDOMBreakpointParams : github.com/chromedp/chromedp.CallAction
*SetDOMBreakpointParams : github.com/chromedp/chromedp.EmulateAction
*SetDOMBreakpointParams : github.com/chromedp/chromedp.EvaluateAction
*SetDOMBreakpointParams : github.com/chromedp/chromedp.KeyAction
*SetDOMBreakpointParams : github.com/chromedp/chromedp.MouseAction
*SetDOMBreakpointParams : github.com/chromedp/chromedp.NavigateAction
*SetDOMBreakpointParams : github.com/chromedp/chromedp.PollAction
*SetDOMBreakpointParams : github.com/chromedp/chromedp.QueryAction
SetDOMBreakpointParams : github.com/goccy/go-json.Marshaler
*SetDOMBreakpointParams : github.com/goccy/go-json.Unmarshaler
SetDOMBreakpointParams : github.com/mailru/easyjson.Marshaler
*SetDOMBreakpointParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetDOMBreakpointParams : github.com/mailru/easyjson.Unmarshaler
SetDOMBreakpointParams : encoding/json.Marshaler
*SetDOMBreakpointParams : encoding/json.Unmarshaler
func SetDOMBreakpoint(nodeID cdp.NodeID, typeVal DOMBreakpointType) *SetDOMBreakpointParams
SetEventListenerBreakpointParams sets breakpoint on particular DOM event.
// Event name.
// EventTarget interface name.
Do executes DOMDebugger.setEventListenerBreakpoint against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
WithTargetName eventTarget interface name to stop on. If equal to "*" or
not provided, will stop on any EventTarget.
*SetEventListenerBreakpointParams : github.com/chromedp/chromedp.Action
*SetEventListenerBreakpointParams : github.com/chromedp/chromedp.CallAction
*SetEventListenerBreakpointParams : github.com/chromedp/chromedp.EmulateAction
*SetEventListenerBreakpointParams : github.com/chromedp/chromedp.EvaluateAction
*SetEventListenerBreakpointParams : github.com/chromedp/chromedp.KeyAction
*SetEventListenerBreakpointParams : github.com/chromedp/chromedp.MouseAction
*SetEventListenerBreakpointParams : github.com/chromedp/chromedp.NavigateAction
*SetEventListenerBreakpointParams : github.com/chromedp/chromedp.PollAction
*SetEventListenerBreakpointParams : github.com/chromedp/chromedp.QueryAction
SetEventListenerBreakpointParams : github.com/goccy/go-json.Marshaler
*SetEventListenerBreakpointParams : github.com/goccy/go-json.Unmarshaler
SetEventListenerBreakpointParams : github.com/mailru/easyjson.Marshaler
*SetEventListenerBreakpointParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetEventListenerBreakpointParams : github.com/mailru/easyjson.Unmarshaler
SetEventListenerBreakpointParams : encoding/json.Marshaler
*SetEventListenerBreakpointParams : encoding/json.Unmarshaler
func SetEventListenerBreakpoint(eventName string) *SetEventListenerBreakpointParams
func SetEventListenerBreakpointParams.WithTargetName(targetName string) *SetEventListenerBreakpointParams
SetXHRBreakpointParams sets breakpoint on XMLHttpRequest.
// Resource URL substring.
Do executes DOMDebugger.setXHRBreakpoint against the provided context.
MarshalEasyJSON supports easyjson.Marshaler interface
MarshalJSON supports json.Marshaler interface
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
UnmarshalJSON supports json.Unmarshaler interface
*SetXHRBreakpointParams : github.com/chromedp/chromedp.Action
*SetXHRBreakpointParams : github.com/chromedp/chromedp.CallAction
*SetXHRBreakpointParams : github.com/chromedp/chromedp.EmulateAction
*SetXHRBreakpointParams : github.com/chromedp/chromedp.EvaluateAction
*SetXHRBreakpointParams : github.com/chromedp/chromedp.KeyAction
*SetXHRBreakpointParams : github.com/chromedp/chromedp.MouseAction
*SetXHRBreakpointParams : github.com/chromedp/chromedp.NavigateAction
*SetXHRBreakpointParams : github.com/chromedp/chromedp.PollAction
*SetXHRBreakpointParams : github.com/chromedp/chromedp.QueryAction
SetXHRBreakpointParams : github.com/goccy/go-json.Marshaler
*SetXHRBreakpointParams : github.com/goccy/go-json.Unmarshaler
SetXHRBreakpointParams : github.com/mailru/easyjson.Marshaler
*SetXHRBreakpointParams : github.com/mailru/easyjson.MarshalerUnmarshaler
*SetXHRBreakpointParams : github.com/mailru/easyjson.Unmarshaler
SetXHRBreakpointParams : encoding/json.Marshaler
*SetXHRBreakpointParams : encoding/json.Unmarshaler
func SetXHRBreakpoint(url string) *SetXHRBreakpointParams
Package-Level Functions (total 8)
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.
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.
RemoveEventListenerBreakpoint removes breakpoint on particular DOM event.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#method-removeEventListenerBreakpoint
parameters:
eventName - Event name.
RemoveXHRBreakpoint removes breakpoint from XMLHttpRequest.
See: https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger#method-removeXHRBreakpoint
parameters:
url - Resource URL substring.
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.
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.
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).
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.
Package-Level Constants (total 13)
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
Command names.
CSPViolationType values.
CSPViolationType values.
DOMBreakpointType values.
DOMBreakpointType values.
DOMBreakpointType values.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |