class Byebug::EvalCommand
:nodoc:
def execute
def execute expr = @match ? @match.post_match : @input run_with_binding do |b| print "#{debug_eval(expr, b).inspect}\n" end end
def help(cmd)
def help(cmd) if cmd == 'p' %{ p expression\tevaluate expression and print its value } else %{ e[val] expression\tevaluate expression and print its value, \t\t\talias for p. * NOTE - to turn on autoeval, use 'set autoeval' } end end
def help_command
def help_command %w|p eval| end
def match(input)
def match(input) @input = input super end
def regexp
def regexp /^\s*(p|e(?:val)?)\s+/ end