Class EvaluationSupport

java.lang.Object
io.quarkus.qute.debug.agent.evaluations.EvaluationSupport

public class EvaluationSupport extends Object
Provides support for evaluating expressions in the context of a debugged template.

This class is used by the debugger to evaluate expressions in a specific stack frame, such as when the user hovers over a variable or issues an "evaluate" request.

  • Constructor Details

    • EvaluationSupport

      public EvaluationSupport(DebuggeeAgent agent)
  • Method Details

    • evaluate

      public CompletableFuture<org.eclipse.lsp4j.debug.EvaluateResponse> evaluate(Integer frameId, String expression, String context)
      Evaluates a string expression in the context of a given stack frame.
      Parameters:
      frameId - the ID of the stack frame where the expression should be evaluated
      expression - the expression to evaluate
      context - the evaluation context (e.g., HOVER, WATCH)
      Returns:
      a CompletableFuture resolving to an EvaluateResponse