java.lang.Object
org.eclipse.lsp4j.debug.Scope
io.quarkus.qute.debug.agent.scopes.RemoteScope
io.quarkus.qute.debug.agent.scopes.GlobalsScope
- All Implemented Interfaces:
VariablesProvider
Represents the global scope in the Qute debugger.
The global scope exposes all variables that are defined at the top-most template context level, ignoring any local or nested contexts.
-
Field Summary
Fields inherited from class io.quarkus.qute.debug.agent.scopes.RemoteScope
EMPTY_SCOPES -
Constructor Summary
ConstructorsConstructorDescriptionGlobalsScope(io.quarkus.qute.ResolutionContext context, RemoteStackFrame frame, VariablesRegistry variablesRegistry) Creates a new global scope. -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<org.eclipse.lsp4j.debug.Variable> Creates the variables for the global 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
-
GlobalsScope
public GlobalsScope(io.quarkus.qute.ResolutionContext context, RemoteStackFrame frame, VariablesRegistry variablesRegistry) Creates a new global scope.- Parameters:
context- the resolution context to extract global variables fromframe- the stack frame associated with this scopevariablesRegistry- the registry managing all debugger variables
-
-
Method Details
-
createVariables
Creates the variables for the global scope.This method traverses the resolution context to the top-most parent, then fills variables from that context using
RemoteScope.fillVariables(io.quarkus.qute.debug.agent.frames.RemoteStackFrame, io.quarkus.qute.ResolutionContext, java.util.Collection<org.eclipse.lsp4j.debug.Variable>, io.quarkus.qute.debug.agent.variables.VariablesRegistry).- Specified by:
createVariablesin classRemoteScope- Returns:
- a collection of
Variablerepresenting the global variables
-