eventbreakpoints

package
v0.0.0-...-64be311 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package eventbreakpoints provides the Chrome DevTools Protocol commands, types, and events for the EventBreakpoints domain.

EventBreakpoints permits setting JavaScript breakpoints on operations and events occurring in native code invoked from JavaScript. Once breakpoint is hit, it is reported through Debugger domain, similarly to regular breakpoints being hit.

Generated by the cdproto-gen command.

Index

Constants

View Source
const (
	CommandSetInstrumentationBreakpoint    = "EventBreakpoints.setInstrumentationBreakpoint"
	CommandRemoveInstrumentationBreakpoint = "EventBreakpoints.removeInstrumentationBreakpoint"
	CommandDisable                         = "EventBreakpoints.disable"
)

Command names.

Variables

This section is empty.

Functions

This section is empty.

Types

type DisableParams

type DisableParams struct{}

DisableParams removes all breakpoints.

func (*DisableParams) Do

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

Do executes EventBreakpoints.disable against the provided context.

type RemoveInstrumentationBreakpointParams

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

RemoveInstrumentationBreakpointParams removes breakpoint on particular native event.

func RemoveInstrumentationBreakpoint

func RemoveInstrumentationBreakpoint(eventName string) *RemoveInstrumentationBreakpointParams

RemoveInstrumentationBreakpoint removes breakpoint on particular native event.

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

parameters:

eventName - Instrumentation name to stop on.

func (*RemoveInstrumentationBreakpointParams) Do

Do executes EventBreakpoints.removeInstrumentationBreakpoint against the provided context.

type SetInstrumentationBreakpointParams

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

SetInstrumentationBreakpointParams sets breakpoint on particular native event.

func SetInstrumentationBreakpoint

func SetInstrumentationBreakpoint(eventName string) *SetInstrumentationBreakpointParams

SetInstrumentationBreakpoint sets breakpoint on particular native event.

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

parameters:

eventName - Instrumentation name to stop on.

func (*SetInstrumentationBreakpointParams) Do

Do executes EventBreakpoints.setInstrumentationBreakpoint against the provided context.

Jump to

Keyboard shortcuts

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