debugger

package
v1.0.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2019 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package debugger provides type definitions for use with the Chrome DOMDebugger protocol

https://chromedevtools.github.io/devtools-protocol/tot/DOMDebugger/

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DOMBreakpointType

type DOMBreakpointType string

DOMBreakpointType is the DOM breakpoint type.

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

type EventListener

type EventListener struct {
	// EventListener's type.
	Type string `json:"type"`

	// EventListener's useCapture.
	UseCapture bool `json:"useCapture"`

	// EventListener's passive flag.
	Passive bool `json:"passive"`

	// EventListener's once flag.
	Once bool `json:"once"`

	// Script ID of the handler code.
	ScriptID runtime.ScriptID `json:"scriptId"`

	// Line number in the script (0-based).
	LineNumber int64 `json:"lineNumber"`

	// Column number in the script (0-based).
	ColumnNumber int64 `json:"columnNumber"`

	// Optional. Event handler function value.
	Handler *runtime.RemoteObject `json:"handler,omitempty"`

	// Optional. Event original handler function value.
	OriginalHandler *runtime.RemoteObject `json:"originalHandler,omitempty"`

	// Optional. Node the listener is added to (if any).
	BackendNodeID dom.BackendNodeID `json:"backendNodeId,omitempty"`
}

EventListener is the object event listener.

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

type GetEventListenersParams

type GetEventListenersParams struct {
	// ID of the object to return listeners for.
	ObjectID runtime.RemoteObjectID `json:"objectId"`

	// Optional. 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.
	Depth int64 `json:"depth,omitempty"`

	// Optional. 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.
	Pierce bool `json:"pierce,omitempty"`
}

GetEventListenersParams represents DOMDebugger.getEventListeners parameters.

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

type GetEventListenersResult

type GetEventListenersResult struct {
	// Array of relevant listeners.
	Listeners []*EventListener `json:"listeners"`

	// Error information related to executing this method
	Err error `json:"-"`
}

GetEventListenersResult represents the result of calls to DOMDebugger.getEventListeners.

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

type RemoveDOMBreakpointParams

type RemoveDOMBreakpointParams struct {
	// ID of the node to remove breakpoint from.
	NodeID dom.NodeID `json:"nodeId"`

	// Type of the breakpoint to remove.
	Type DOMBreakpointType `json:"type"`
}

RemoveDOMBreakpointParams represents DOMDebugger.removeDOMBreakpoint parameters.

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

type RemoveDOMBreakpointResult

type RemoveDOMBreakpointResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

RemoveDOMBreakpointResult represents the result of calls to DOMDebugger.removeDOMBreakpoint.

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

type RemoveEventListenerBreakpointParams

type RemoveEventListenerBreakpointParams struct {
	// Event name.
	EventName string `json:"eventName"`

	// Optional. EventTarget interface name. EXPERIMENTAL
	TargetName string `json:"targetName,omitempty"`
}

RemoveEventListenerBreakpointParams represents DOMDebugger.removeEventListenerBreakpoint parameters.

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

type RemoveEventListenerBreakpointResult

type RemoveEventListenerBreakpointResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

RemoveEventListenerBreakpointResult represents the result of calls to DOMDebugger.removeEventListenerBreakpoint.

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

type RemoveInstrumentationBreakpointParams

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

RemoveInstrumentationBreakpointParams represents DOMDebugger.removeInstrumentationBreakpoint parameters.

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

type RemoveInstrumentationBreakpointResult

type RemoveInstrumentationBreakpointResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

RemoveInstrumentationBreakpointResult represents the result of calls to DOMDebugger.removeInstrumentationBreakpoint.

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

type RemoveXHRBreakpointParams

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

RemoveXHRBreakpointParams represents DOMDebugger.removeXHRBreakpoint parameters.

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

type RemoveXHRBreakpointResult

type RemoveXHRBreakpointResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

RemoveXHRBreakpointResult represents the result of calls to DOMDebugger.removeXHRBreakpoint.

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

type SetDOMBreakpointParams

type SetDOMBreakpointParams struct {
	// ID of the node to set breakpoint on.
	NodeID dom.NodeID `json:"nodeId"`

	// Type of the operation to stop upon.
	Type DOMBreakpointType `json:"type"`
}

SetDOMBreakpointParams represents DOMDebugger.setDOMBreakpoint parameters.

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

type SetDOMBreakpointResult

type SetDOMBreakpointResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

SetDOMBreakpointResult represents the result of calls to DOMDebugger.setDOMBreakpoint.

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

type SetEventListenerBreakpointParams

type SetEventListenerBreakpointParams struct {
	// DOM Event name to stop on (any DOM event will do).
	EventName string `json:"eventName"`

	// Optional. EventTarget interface name to stop on. If equal to "*" or not
	// provided, will stop on any EventTarget. EXPERIMENTAL
	TargetName string `json:"targetName,omitempty"`
}

SetEventListenerBreakpointParams represents DOMDebugger.setEventListenerBreakpoint parameters.

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

type SetEventListenerBreakpointResult

type SetEventListenerBreakpointResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

SetEventListenerBreakpointResult represents the result of calls to DOMDebugger.setEventListenerBreakpoint.

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

type SetInstrumentationBreakpointParams

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

SetInstrumentationBreakpointParams represents DOMDebugger.setInstrumentationBreakpoint parameters.

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

type SetInstrumentationBreakpointResult

type SetInstrumentationBreakpointResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

SetInstrumentationBreakpointResult represents the result of calls to DOMDebugger.setInstrumentationBreakpoint.

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

type SetXHRBreakpointParams

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

SetXHRBreakpointParams represents DOMDebugger.setXHRBreakpoint parameters.

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

type SetXHRBreakpointResult

type SetXHRBreakpointResult struct {
	// Error information related to executing this method
	Err error `json:"-"`
}

SetXHRBreakpointResult represents the result of calls to DOMDebugger.setXHRBreakpoint.

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

Jump to

Keyboard shortcuts

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