Class: Byebug::VarIdeCommand

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

Instance Method Summary collapse

Instance Method Details

#executeObject



46
47
48
49
50
51
52
# File 'lib/byebug/commands/variables.rb', line 46

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



42
43
44
# File 'lib/byebug/commands/variables.rb', line 42

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