debug

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package debug EXPERIMENTAL: This package is under active development and is subject to change.

Deprecated: This package is intended for older projects transitioning from OPA v0.x and will remain for the lifetime of OPA v1.x, but its use is not recommended. For newer features and behaviours, such as defaulting to the Rego v1 syntax, use the corresponding components in the github.com/open-policy-agent/opa/v1 package instead. See https://www.openpolicyagent.org/docs/latest/v0-compatibility/ for more information.

Index

Constants

View Source
const (
	ExceptionEventType  = v1.ExceptionEventType
	StdoutEventType     = v1.StdoutEventType
	StoppedEventType    = v1.StoppedEventType
	TerminatedEventType = v1.TerminatedEventType
	ThreadEventType     = v1.ThreadEventType
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Breakpoint

type Breakpoint = v1.Breakpoint

type BreakpointID

type BreakpointID = v1.BreakpointID

type Debugger

type Debugger = v1.Debugger

Debugger is the interface for launching OPA debugger Session(s). This implementation is similar in structure to the Debug Adapter Protocol (DAP) to make such integrations easier, but is not intended to be a direct implementation. See: https://microsoft.github.io/debug-adapter-protocol/specification

EXPERIMENTAL: These interfaces are under active development and is subject to change.

func NewDebugger

func NewDebugger(options ...DebuggerOption) Debugger

type DebuggerOption

type DebuggerOption = v1.DebuggerOption

func SetEventHandler

func SetEventHandler(handler EventHandler) DebuggerOption

func SetLogger

func SetLogger(logger logging.Logger) DebuggerOption

type Event

type Event = v1.Event

type EventHandler

type EventHandler = v1.EventHandler

type EventType

type EventType = v1.EventType

type FrameID

type FrameID = v1.FrameID

type LaunchEvalProperties

type LaunchEvalProperties = v1.LaunchEvalProperties

type LaunchOption added in v0.69.0

type LaunchOption = v1.LaunchOption

func RegoOption added in v0.69.0

func RegoOption(opt func(*rego.Rego)) LaunchOption

RegoOption adds a rego option to the internal Rego instance. Options may be overridden by the debugger, and it is recommended to use LaunchEvalProperties for commonly used options.

type LaunchProperties

type LaunchProperties = v1.LaunchProperties

type LaunchTestProperties

type LaunchTestProperties = v1.LaunchTestProperties

type Scope

type Scope = v1.Scope

Scope represents the variable state of a StackFrame.

type Session

type Session = v1.Session

type StackFrame

type StackFrame = v1.StackFrame

type StackTrace

type StackTrace = v1.StackTrace

StackTrace represents a StackFrame stack.

type Thread

type Thread = v1.Thread

Thread represents a single thread of execution.

type ThreadID

type ThreadID = v1.ThreadID

type VarRef

type VarRef = v1.VarRef

type Variable

type Variable = v1.Variable

Jump to

Keyboard shortcuts

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