Package com.helix.core.debug
Class DebugSession
java.lang.Object
com.helix.core.debug.DebugSession
- All Implemented Interfaces:
AutoCloseable
Manages an interactive debug session with breakpoints, stepping, and frame stack inspection.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidclearBreakpoint(int clauseIndex) voidclose()voidContinues execution until the next breakpoint or completion.longvoidhandleProbe(int clauseIndex, String description, Object left, Object right, boolean outcome, ExecutionContext context) Handles an incoming condition probe from bytecode.booleanhasBreakpoint(int clauseIndex) booleanbooleanisPaused()booleanvoidonCompleted(Object result) Signals that rule execution has completed.voidsetBreakpoint(int clauseIndex) voidsetClauses(List<ConditionClause> clauses) voidsetListener(DebugSession.DebugListener listener) voidsetStepMode(boolean step) voidstep()Advances to the next condition clause (single-step mode).
-
Constructor Details
-
DebugSession
public DebugSession() -
DebugSession
-
-
Method Details
-
getPauseCount
public long getPauseCount() -
setListener
-
setClauses
-
getClauses
-
setBreakpoint
public void setBreakpoint(int clauseIndex) -
clearBreakpoint
public void clearBreakpoint(int clauseIndex) -
clearAllBreakpoints
public void clearAllBreakpoints() -
getBreakpoints
-
hasBreakpoint
public boolean hasBreakpoint(int clauseIndex) -
isStepMode
public boolean isStepMode() -
setStepMode
public void setStepMode(boolean step) -
isPaused
public boolean isPaused() -
isCompleted
public boolean isCompleted() -
getCurrentFrame
-
getHistory
-
getFinalResult
-
handleProbe
public void handleProbe(int clauseIndex, String description, Object left, Object right, boolean outcome, ExecutionContext context) Handles an incoming condition probe from bytecode. -
step
public void step()Advances to the next condition clause (single-step mode). -
continueExecution
public void continueExecution()Continues execution until the next breakpoint or completion. -
onCompleted
Signals that rule execution has completed. -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-