class Byebug::PPCommand

def description

def description
  %{
    pp expression\tevaluate expression and pretty-print its value
  }
end

def execute

def execute
  out = StringIO.new
  run_with_binding do |b|
    PP.pp(debug_eval(@match.post_match, b), out)
  end
  print out.string
rescue
  out.puts $!.message
end

def names

def names
  %w(pp)
end

def regexp

def regexp
  /^\s*pp\s+/
end