java.lang.Object
org.eclipse.lsp4j.debug.Scope
io.quarkus.qute.debug.agent.scopes.RemoteScope
io.quarkus.qute.debug.agent.scopes.LocalsScope
- All Implemented Interfaces:
VariablesProvider
Represents the local scope in the Qute debugger.
The local scope exposes all variables that are defined in the current resolution context and its parent contexts, stopping before the global context.
-
Field Summary
Fields inherited from class io.quarkus.qute.debug.agent.scopes.RemoteScope
EMPTY_SCOPES -
Constructor Summary
ConstructorsConstructorDescriptionLocalsScope(io.quarkus.qute.ResolutionContext context, RemoteStackFrame frame, VariablesRegistry variablesRegistry) Creates a new local scope. -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<org.eclipse.lsp4j.debug.Variable> Creates the variables for the local scope.Methods inherited from class io.quarkus.qute.debug.agent.scopes.RemoteScope
fillVariables, getStackFrame, getVariables, getVariablesRegistryMethods inherited from class org.eclipse.lsp4j.debug.Scope
equals, getColumn, getEndColumn, getEndLine, getIndexedVariables, getLine, getName, getNamedVariables, getPresentationHint, getSource, getVariablesReference, hashCode, isExpensive, setColumn, setEndColumn, setEndLine, setExpensive, setIndexedVariables, setLine, setName, setNamedVariables, setPresentationHint, setSource, 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
-
LocalsScope
public LocalsScope(io.quarkus.qute.ResolutionContext context, RemoteStackFrame frame, VariablesRegistry variablesRegistry) Creates a new local scope.- Parameters:
context- the resolution context to extract local variables fromframe- the stack frame associated with this scopevariablesRegistry- the registry managing all debugger variables
-
-
Method Details
-
createVariables
Creates the variables for the local scope.This method traverses the current context and its parent contexts, filling variables along the way, but it stops before reaching the top-most global context.
- Specified by:
createVariablesin classRemoteScope- Returns:
- a collection of
Variablerepresenting the local variables
-