Class LocalsScope

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

public class LocalsScope extends RemoteScope
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.

  • 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 from
      frame - the stack frame associated with this scope
      variablesRegistry - the registry managing all debugger variables
  • Method Details

    • createVariables

      protected Collection<org.eclipse.lsp4j.debug.Variable> 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:
      createVariables in class RemoteScope
      Returns:
      a collection of Variable representing the local variables