Class: Debugger::VarIdeCommand

Inherits:
Command
  • Object
show all
Defined in:
lib/debugger/commands/variables.rb

Instance Method Summary collapse

Instance Method Details

#executeObject



29
30
31
32
33
34
35
# File 'lib/debugger/commands/variables.rb', line 29

def execute
  locals = []
  _self = @state.context.frame_self(@state.frame_pos)
  locals << ['self', _self] unless _self.to_s == "main"
  locals += @state.context.frame_locals(@state.frame_pos).sort.map { |key, value| [key, value] }
  print prv(locals, 'instance')
end

#regexpObject



25
26
27
# File 'lib/debugger/commands/variables.rb', line 25

def regexp
  /^\s*v(?:ar)?\s+ide\s*$/
end