debug

package
v0.71.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Debugger

type Debugger struct {
	Breakpoints map[Step]struct{} // Task names where the debugger will pause execution
	StepMode    bool              // Flag to step through the workflow one task at a time
	// contains filtered or unexported fields
}

Debugger is responsible for debugging Endly workflows.

func NewDebugger

func NewDebugger() *Debugger

NewDebugger creates a new debugger instance with initialized channels.

func (*Debugger) AfterTaskExecution

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

AfterTaskExecution logs task results, similar to the previous implementation.

func (*Debugger) BeforeTaskExecution

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

BeforeTaskExecution is modified to pause at breakpoints or in step mode, waiting for channel input to continue.

func (*Debugger) EnableStepMode

func (d *Debugger) EnableStepMode(enable bool)

EnableStepMode enables or disables step mode.

func (*Debugger) RemoveBreakpoint

func (d *Debugger) RemoveBreakpoint(breakpoint Step)

RemoveBreakpoint removes a breakpoint from a task by its name.

func (*Debugger) SetBreakpoint

func (d *Debugger) SetBreakpoint(step Step)

SetBreakpoint sets a breakpoint on a task by its name.

type Step

type Step struct {
	Workflow string
	TaskName string
}

Jump to

Keyboard shortcuts

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