Documentation
¶
Index ¶
- type DOMBreakpointType
- type DOMDebuggerAgent
- func (agent *DOMDebuggerAgent) Name() string
- func (agent *DOMDebuggerAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
- func (agent *DOMDebuggerAgent) SetGetEventListenersHandler(handler func(GetEventListenersCommand))
- func (agent *DOMDebuggerAgent) SetRemoveDOMBreakpointHandler(handler func(RemoveDOMBreakpointCommand))
- func (agent *DOMDebuggerAgent) SetRemoveEventListenerBreakpointHandler(handler func(RemoveEventListenerBreakpointCommand))
- func (agent *DOMDebuggerAgent) SetRemoveInstrumentationBreakpointHandler(handler func(RemoveInstrumentationBreakpointCommand))
- func (agent *DOMDebuggerAgent) SetRemoveXHRBreakpointHandler(handler func(RemoveXHRBreakpointCommand))
- func (agent *DOMDebuggerAgent) SetSetDOMBreakpointHandler(handler func(SetDOMBreakpointCommand))
- func (agent *DOMDebuggerAgent) SetSetEventListenerBreakpointHandler(handler func(SetEventListenerBreakpointCommand))
- func (agent *DOMDebuggerAgent) SetSetInstrumentationBreakpointHandler(handler func(SetInstrumentationBreakpointCommand))
- func (agent *DOMDebuggerAgent) SetSetXHRBreakpointHandler(handler func(SetXHRBreakpointCommand))
- type EventListener
- type GetEventListenersCommand
- type GetEventListenersCommandFn
- type GetEventListenersReturn
- type RemoveDOMBreakpointCommand
- type RemoveDOMBreakpointCommandFn
- type RemoveDOMBreakpointReturn
- type RemoveEventListenerBreakpointCommand
- type RemoveEventListenerBreakpointCommandFn
- type RemoveEventListenerBreakpointReturn
- type RemoveInstrumentationBreakpointCommand
- type RemoveInstrumentationBreakpointCommandFn
- type RemoveInstrumentationBreakpointReturn
- type RemoveXHRBreakpointCommand
- type RemoveXHRBreakpointCommandFn
- type RemoveXHRBreakpointReturn
- type SetDOMBreakpointCommand
- type SetDOMBreakpointCommandFn
- type SetDOMBreakpointReturn
- type SetEventListenerBreakpointCommand
- type SetEventListenerBreakpointCommandFn
- type SetEventListenerBreakpointReturn
- type SetInstrumentationBreakpointCommand
- type SetInstrumentationBreakpointCommandFn
- type SetInstrumentationBreakpointReturn
- type SetXHRBreakpointCommand
- type SetXHRBreakpointCommandFn
- type SetXHRBreakpointReturn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DOMBreakpointType ¶
type DOMBreakpointType string
const ( DOMBreakpointTypeSubtreeDashmodified DOMBreakpointType = "subtree-modified" DOMBreakpointTypeAttributeDashmodified DOMBreakpointType = "attribute-modified" DOMBreakpointTypeNodeDashremoved DOMBreakpointType = "node-removed" )
type DOMDebuggerAgent ¶
type DOMDebuggerAgent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(conn *shared.Connection) *DOMDebuggerAgent
func (*DOMDebuggerAgent) Name ¶
func (agent *DOMDebuggerAgent) Name() string
func (*DOMDebuggerAgent) ProcessCommand ¶
func (agent *DOMDebuggerAgent) ProcessCommand(id int64, targetId string, funcName string, data *json.RawMessage)
func (*DOMDebuggerAgent) SetGetEventListenersHandler ¶
func (agent *DOMDebuggerAgent) SetGetEventListenersHandler(handler func(GetEventListenersCommand))
func (*DOMDebuggerAgent) SetRemoveDOMBreakpointHandler ¶
func (agent *DOMDebuggerAgent) SetRemoveDOMBreakpointHandler(handler func(RemoveDOMBreakpointCommand))
func (*DOMDebuggerAgent) SetRemoveEventListenerBreakpointHandler ¶
func (agent *DOMDebuggerAgent) SetRemoveEventListenerBreakpointHandler(handler func(RemoveEventListenerBreakpointCommand))
func (*DOMDebuggerAgent) SetRemoveInstrumentationBreakpointHandler ¶
func (agent *DOMDebuggerAgent) SetRemoveInstrumentationBreakpointHandler(handler func(RemoveInstrumentationBreakpointCommand))
func (*DOMDebuggerAgent) SetRemoveXHRBreakpointHandler ¶
func (agent *DOMDebuggerAgent) SetRemoveXHRBreakpointHandler(handler func(RemoveXHRBreakpointCommand))
func (*DOMDebuggerAgent) SetSetDOMBreakpointHandler ¶
func (agent *DOMDebuggerAgent) SetSetDOMBreakpointHandler(handler func(SetDOMBreakpointCommand))
Commands Sent From Frontend
func (*DOMDebuggerAgent) SetSetEventListenerBreakpointHandler ¶
func (agent *DOMDebuggerAgent) SetSetEventListenerBreakpointHandler(handler func(SetEventListenerBreakpointCommand))
func (*DOMDebuggerAgent) SetSetInstrumentationBreakpointHandler ¶
func (agent *DOMDebuggerAgent) SetSetInstrumentationBreakpointHandler(handler func(SetInstrumentationBreakpointCommand))
func (*DOMDebuggerAgent) SetSetXHRBreakpointHandler ¶
func (agent *DOMDebuggerAgent) SetSetXHRBreakpointHandler(handler func(SetXHRBreakpointCommand))
type EventListener ¶
type EventListener struct { Type string `json:"type"` // <code>EventListener</code>'s type. UseCapture bool `json:"useCapture"` // <code>EventListener</code>'s useCapture. Passive bool `json:"passive"` // <code>EventListener</code>'s passive flag. Once bool `json:"once"` // <code>EventListener</code>'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 *dom.BackendNodeId `json:"backendNodeId,omitempty"` // Node the listener is added to (if any). }
type GetEventListenersCommand ¶
type GetEventListenersCommand struct { DestinationTargetID string ObjectId runtime.RemoteObjectId `json:"objectId"` // Identifier of the object to return listeners for. Depth *int64 `json:"depth,omitempty"` // [Experimental] 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"` // [Experimental] 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. // contains filtered or unexported fields }
func (*GetEventListenersCommand) Initalize ¶
func (c *GetEventListenersCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*GetEventListenersCommand) Respond ¶
func (c *GetEventListenersCommand) Respond(r *GetEventListenersReturn)
func (*GetEventListenersCommand) RespondWithError ¶
func (c *GetEventListenersCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type GetEventListenersCommandFn ¶
type GetEventListenersCommandFn struct {
// contains filtered or unexported fields
}
func (*GetEventListenersCommandFn) Load ¶
func (a *GetEventListenersCommandFn) Load() func(GetEventListenersCommand)
func (*GetEventListenersCommandFn) Store ¶
func (a *GetEventListenersCommandFn) Store(fn func(GetEventListenersCommand))
type GetEventListenersReturn ¶
type GetEventListenersReturn struct {
Listeners []EventListener `json:"listeners"` // Array of relevant listeners.
}
type RemoveDOMBreakpointCommand ¶
type RemoveDOMBreakpointCommand struct { DestinationTargetID string NodeId dom.NodeId `json:"nodeId"` // Identifier of the node to remove breakpoint from. Type DOMBreakpointType `json:"type"` // Type of the breakpoint to remove. // contains filtered or unexported fields }
func (*RemoveDOMBreakpointCommand) Initalize ¶
func (c *RemoveDOMBreakpointCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*RemoveDOMBreakpointCommand) Respond ¶
func (c *RemoveDOMBreakpointCommand) Respond()
func (*RemoveDOMBreakpointCommand) RespondWithError ¶
func (c *RemoveDOMBreakpointCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type RemoveDOMBreakpointCommandFn ¶
type RemoveDOMBreakpointCommandFn struct {
// contains filtered or unexported fields
}
func (*RemoveDOMBreakpointCommandFn) Load ¶
func (a *RemoveDOMBreakpointCommandFn) Load() func(RemoveDOMBreakpointCommand)
func (*RemoveDOMBreakpointCommandFn) Store ¶
func (a *RemoveDOMBreakpointCommandFn) Store(fn func(RemoveDOMBreakpointCommand))
type RemoveDOMBreakpointReturn ¶
type RemoveDOMBreakpointReturn struct { }
type RemoveEventListenerBreakpointCommand ¶
type RemoveEventListenerBreakpointCommand struct { DestinationTargetID string EventName string `json:"eventName"` // Event name. TargetName *string `json:"targetName,omitempty"` // [Experimental] EventTarget interface name. // contains filtered or unexported fields }
func (*RemoveEventListenerBreakpointCommand) Initalize ¶
func (c *RemoveEventListenerBreakpointCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*RemoveEventListenerBreakpointCommand) Respond ¶
func (c *RemoveEventListenerBreakpointCommand) Respond()
func (*RemoveEventListenerBreakpointCommand) RespondWithError ¶
func (c *RemoveEventListenerBreakpointCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type RemoveEventListenerBreakpointCommandFn ¶
type RemoveEventListenerBreakpointCommandFn struct {
// contains filtered or unexported fields
}
func (*RemoveEventListenerBreakpointCommandFn) Load ¶
func (a *RemoveEventListenerBreakpointCommandFn) Load() func(RemoveEventListenerBreakpointCommand)
func (*RemoveEventListenerBreakpointCommandFn) Store ¶
func (a *RemoveEventListenerBreakpointCommandFn) Store(fn func(RemoveEventListenerBreakpointCommand))
type RemoveEventListenerBreakpointReturn ¶
type RemoveEventListenerBreakpointReturn struct { }
type RemoveInstrumentationBreakpointCommand ¶
type RemoveInstrumentationBreakpointCommand struct { DestinationTargetID string EventName string `json:"eventName"` // Instrumentation name to stop on. // contains filtered or unexported fields }
func (*RemoveInstrumentationBreakpointCommand) Initalize ¶
func (c *RemoveInstrumentationBreakpointCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*RemoveInstrumentationBreakpointCommand) Respond ¶
func (c *RemoveInstrumentationBreakpointCommand) Respond()
func (*RemoveInstrumentationBreakpointCommand) RespondWithError ¶
func (c *RemoveInstrumentationBreakpointCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type RemoveInstrumentationBreakpointCommandFn ¶
type RemoveInstrumentationBreakpointCommandFn struct {
// contains filtered or unexported fields
}
func (*RemoveInstrumentationBreakpointCommandFn) Load ¶
func (a *RemoveInstrumentationBreakpointCommandFn) Load() func(RemoveInstrumentationBreakpointCommand)
func (*RemoveInstrumentationBreakpointCommandFn) Store ¶
func (a *RemoveInstrumentationBreakpointCommandFn) Store(fn func(RemoveInstrumentationBreakpointCommand))
type RemoveInstrumentationBreakpointReturn ¶
type RemoveInstrumentationBreakpointReturn struct { }
type RemoveXHRBreakpointCommand ¶
type RemoveXHRBreakpointCommand struct { DestinationTargetID string Url string `json:"url"` // Resource URL substring. // contains filtered or unexported fields }
func (*RemoveXHRBreakpointCommand) Initalize ¶
func (c *RemoveXHRBreakpointCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*RemoveXHRBreakpointCommand) Respond ¶
func (c *RemoveXHRBreakpointCommand) Respond()
func (*RemoveXHRBreakpointCommand) RespondWithError ¶
func (c *RemoveXHRBreakpointCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type RemoveXHRBreakpointCommandFn ¶
type RemoveXHRBreakpointCommandFn struct {
// contains filtered or unexported fields
}
func (*RemoveXHRBreakpointCommandFn) Load ¶
func (a *RemoveXHRBreakpointCommandFn) Load() func(RemoveXHRBreakpointCommand)
func (*RemoveXHRBreakpointCommandFn) Store ¶
func (a *RemoveXHRBreakpointCommandFn) Store(fn func(RemoveXHRBreakpointCommand))
type RemoveXHRBreakpointReturn ¶
type RemoveXHRBreakpointReturn struct { }
type SetDOMBreakpointCommand ¶
type SetDOMBreakpointCommand struct { DestinationTargetID string NodeId dom.NodeId `json:"nodeId"` // Identifier of the node to set breakpoint on. Type DOMBreakpointType `json:"type"` // Type of the operation to stop upon. // contains filtered or unexported fields }
func (*SetDOMBreakpointCommand) Initalize ¶
func (c *SetDOMBreakpointCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetDOMBreakpointCommand) Respond ¶
func (c *SetDOMBreakpointCommand) Respond()
func (*SetDOMBreakpointCommand) RespondWithError ¶
func (c *SetDOMBreakpointCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetDOMBreakpointCommandFn ¶
type SetDOMBreakpointCommandFn struct {
// contains filtered or unexported fields
}
func (*SetDOMBreakpointCommandFn) Load ¶
func (a *SetDOMBreakpointCommandFn) Load() func(SetDOMBreakpointCommand)
func (*SetDOMBreakpointCommandFn) Store ¶
func (a *SetDOMBreakpointCommandFn) Store(fn func(SetDOMBreakpointCommand))
type SetDOMBreakpointReturn ¶
type SetDOMBreakpointReturn struct { }
type SetEventListenerBreakpointCommand ¶
type SetEventListenerBreakpointCommand struct { DestinationTargetID string EventName string `json:"eventName"` // DOM Event name to stop on (any DOM event will do). TargetName *string `json:"targetName,omitempty"` // [Experimental] EventTarget interface name to stop on. If equal to <code>"*"</code> or not provided, will stop on any EventTarget. // contains filtered or unexported fields }
func (*SetEventListenerBreakpointCommand) Initalize ¶
func (c *SetEventListenerBreakpointCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetEventListenerBreakpointCommand) Respond ¶
func (c *SetEventListenerBreakpointCommand) Respond()
func (*SetEventListenerBreakpointCommand) RespondWithError ¶
func (c *SetEventListenerBreakpointCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetEventListenerBreakpointCommandFn ¶
type SetEventListenerBreakpointCommandFn struct {
// contains filtered or unexported fields
}
func (*SetEventListenerBreakpointCommandFn) Load ¶
func (a *SetEventListenerBreakpointCommandFn) Load() func(SetEventListenerBreakpointCommand)
func (*SetEventListenerBreakpointCommandFn) Store ¶
func (a *SetEventListenerBreakpointCommandFn) Store(fn func(SetEventListenerBreakpointCommand))
type SetEventListenerBreakpointReturn ¶
type SetEventListenerBreakpointReturn struct { }
type SetInstrumentationBreakpointCommand ¶
type SetInstrumentationBreakpointCommand struct { DestinationTargetID string EventName string `json:"eventName"` // Instrumentation name to stop on. // contains filtered or unexported fields }
func (*SetInstrumentationBreakpointCommand) Initalize ¶
func (c *SetInstrumentationBreakpointCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetInstrumentationBreakpointCommand) Respond ¶
func (c *SetInstrumentationBreakpointCommand) Respond()
func (*SetInstrumentationBreakpointCommand) RespondWithError ¶
func (c *SetInstrumentationBreakpointCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetInstrumentationBreakpointCommandFn ¶
type SetInstrumentationBreakpointCommandFn struct {
// contains filtered or unexported fields
}
func (*SetInstrumentationBreakpointCommandFn) Load ¶
func (a *SetInstrumentationBreakpointCommandFn) Load() func(SetInstrumentationBreakpointCommand)
func (*SetInstrumentationBreakpointCommandFn) Store ¶
func (a *SetInstrumentationBreakpointCommandFn) Store(fn func(SetInstrumentationBreakpointCommand))
type SetInstrumentationBreakpointReturn ¶
type SetInstrumentationBreakpointReturn struct { }
type SetXHRBreakpointCommand ¶
type SetXHRBreakpointCommand struct { DestinationTargetID string Url string `json:"url"` // Resource URL substring. All XHRs having this substring in the URL will get stopped upon. // contains filtered or unexported fields }
func (*SetXHRBreakpointCommand) Initalize ¶
func (c *SetXHRBreakpointCommand) Initalize(targetId string, responseId int64, conn *shared.Connection)
func (*SetXHRBreakpointCommand) Respond ¶
func (c *SetXHRBreakpointCommand) Respond()
func (*SetXHRBreakpointCommand) RespondWithError ¶
func (c *SetXHRBreakpointCommand) RespondWithError(code shared.ResponseErrorCodes, message string)
type SetXHRBreakpointCommandFn ¶
type SetXHRBreakpointCommandFn struct {
// contains filtered or unexported fields
}
func (*SetXHRBreakpointCommandFn) Load ¶
func (a *SetXHRBreakpointCommandFn) Load() func(SetXHRBreakpointCommand)
func (*SetXHRBreakpointCommandFn) Store ¶
func (a *SetXHRBreakpointCommandFn) Store(fn func(SetXHRBreakpointCommand))
type SetXHRBreakpointReturn ¶
type SetXHRBreakpointReturn struct { }
Click to show internal directories.
Click to hide internal directories.