debug

package
v0.89.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandPause    = "pause"
	CommandStep     = "step"
	CommandNext     = "next"
	CommandContinue = "continue"
	CommandStop     = "stop"
	StateRunning    = "running"
	StatePaused     = "paused"
	StateStopped    = "stopped"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Debugger

type Debugger struct {
	Breakpoints map[Step]struct{}
	StepMode    bool
	// contains filtered or unexported fields
}

func NewDebugger

func NewDebugger() *Debugger

func (*Debugger) AfterTaskExecution

func (d *Debugger) AfterTaskExecution(_ Step, _ interface{})

func (*Debugger) Before added in v0.89.0

func (d *Debugger) Before(ctx context.Context, point Step, snapshot interface{}) error

func (*Debugger) BeforeTaskExecution

func (d *Debugger) BeforeTaskExecution(step Step, request interface{})

Legacy methods remain for compatibility; served workflows use Before directly.

func (*Debugger) Control added in v0.89.0

func (d *Debugger) Control(command string) error

func (*Debugger) EnableStepMode

func (d *Debugger) EnableStepMode(enable bool)

func (*Debugger) RemoveBreakpoint

func (d *Debugger) RemoveBreakpoint(step Step)

func (*Debugger) SetBreakpoint

func (d *Debugger) SetBreakpoint(step Step)

func (*Debugger) State added in v0.89.0

func (d *Debugger) State() *State

type State added in v0.89.0

type State struct {
	Status      string      `json:"status"`
	Mode        string      `json:"mode"`
	Point       Step        `json:"point"`
	Breakpoints []Step      `json:"breakpoints,omitempty"`
	PausedAt    *time.Time  `json:"pausedAt,omitempty"`
	Snapshot    interface{} `json:"snapshot,omitempty"`
}

type Step

type Step struct {
	Workflow string `json:"workflow,omitempty"`
	TaskName string `json:"task,omitempty"`
	Action   string `json:"action,omitempty"`
	TagID    string `json:"tagId,omitempty"`
	Kind     string `json:"kind,omitempty"`
}

Jump to

Keyboard shortcuts

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