domdebugger

package
v0.0.0-...-076f285 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

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 (*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 (*GetEventListenersCommandFn) Store

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 (*RemoveDOMBreakpointCommandFn) Store

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 (*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 (*RemoveEventListenerBreakpointCommandFn) Store

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 (*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 (*RemoveInstrumentationBreakpointCommandFn) Store

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 (*RemoveXHRBreakpointCommandFn) Store

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 (*SetDOMBreakpointCommandFn) Store

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 (*SetEventListenerBreakpointCommandFn) Store

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 (*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 (*SetInstrumentationBreakpointCommandFn) Store

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 (*SetXHRBreakpointCommandFn) Store

type SetXHRBreakpointReturn

type SetXHRBreakpointReturn struct {
}

Jump to

Keyboard shortcuts

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