class Byebug::VarLocalCommand

Implements byebug’s ‘var local’ command

def execute

def execute
  locals = @state.context.frame_locals(@state.frame_pos)
  _self = @state.context.frame_self(@state.frame_pos)
  locals.keys.sort.each do |name|
    print "  %s => %p\n", name, locals[name]
  end
end

def help(cmd)

def help(cmd)
  %{
    v[ar] l[ocal]\t\t\tshow local variables
  }
end

def help_command

def help_command
  'var'
end

def regexp

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