Class RemoteVariable

java.lang.Object
org.eclipse.lsp4j.debug.Variable
io.quarkus.qute.debug.agent.variables.RemoteVariable
All Implemented Interfaces:
VariablesProvider

public class RemoteVariable extends org.eclipse.lsp4j.debug.Variable implements VariablesProvider
A remote variable in the debugger, which may have child variables.

Wraps a value in a Variable that can be inspected in the debugger. Supports collections, arrays, and objects with fields or value resolvers.

Variables are lazily initialized. For collections or arrays, each element is added as a child variable with its index as the name. For objects, all fields and resolvable properties are added via ValueResolverRegistry.

  • Constructor Summary

    Constructors
    Constructor
    Description
    RemoteVariable(Object value, RemoteStackFrame frame, VariablesRegistry variablesRegistry)
    Creates a new remote variable.
  • Method Summary

    Modifier and Type
    Method
    Description
    Collection<org.eclipse.lsp4j.debug.Variable>
    Returns child variables of this variable.

    Methods inherited from class org.eclipse.lsp4j.debug.Variable

    equals, getDeclarationLocationReference, getEvaluateName, getIndexedVariables, getMemoryReference, getName, getNamedVariables, getPresentationHint, getType, getValue, getValueLocationReference, getVariablesReference, hashCode, setDeclarationLocationReference, setEvaluateName, setIndexedVariables, setMemoryReference, setName, setNamedVariables, setPresentationHint, setType, setValue, setValueLocationReference, setVariablesReference, toString

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.quarkus.qute.debug.agent.variables.VariablesProvider

    getVariablesReference, setVariablesReference
  • Constructor Details

    • RemoteVariable

      public RemoteVariable(Object value, RemoteStackFrame frame, VariablesRegistry variablesRegistry)
      Creates a new remote variable.
      Parameters:
      value - the underlying value
      frame - the stack frame
      variablesRegistry - registry for managing variables
  • Method Details

    • getVariables

      public Collection<org.eclipse.lsp4j.debug.Variable> getVariables()
      Returns child variables of this variable.

      For arrays and iterables, each element is converted into a Variable. For other objects, the VariableContext is used to collect fields and value resolver properties.

      Specified by:
      getVariables in interface VariablesProvider
      Returns:
      a collection of child Variable, or an empty list if there are none