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 ¶
AfterTaskExecution logs task results, similar to the previous implementation.
func (*Debugger) BeforeTaskExecution ¶
BeforeTaskExecution is modified to pause at breakpoints or in step mode, waiting for channel input to continue.
func (*Debugger) EnableStepMode ¶
EnableStepMode enables or disables step mode.
func (*Debugger) RemoveBreakpoint ¶
RemoveBreakpoint removes a breakpoint from a task by its name.
func (*Debugger) SetBreakpoint ¶
SetBreakpoint sets a breakpoint on a task by its name.
Click to show internal directories.
Click to hide internal directories.