java.lang.Object
org.eclipse.lsp4j.debug.Variable
io.quarkus.qute.debug.agent.variables.RemoteVariable
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionRemoteVariable(Object value, RemoteStackFrame frame, VariablesRegistry variablesRegistry) Creates a new remote variable. -
Method Summary
Modifier and TypeMethodDescriptionCollection<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, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.quarkus.qute.debug.agent.variables.VariablesProvider
getVariablesReference, setVariablesReference
-
Constructor Details
-
RemoteVariable
Creates a new remote variable.- Parameters:
value- the underlying valueframe- the stack framevariablesRegistry- registry for managing variables
-
-
Method Details
-
getVariables
Returns child variables of this variable.For arrays and iterables, each element is converted into a
Variable. For other objects, theVariableContextis used to collect fields and value resolver properties.- Specified by:
getVariablesin interfaceVariablesProvider- Returns:
- a collection of child
Variable, or an empty list if there are none
-