class Debugger::VarIdeCommand

Public Instance Methods

execute() click to toggle source
# 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
regexp() click to toggle source
# File lib/debugger/commands/variables.rb, line 25
def regexp
  /^\s*v(?:ar)?\s+ide\s*$/
end