module Byebug::Helpers::EvalHelper

def safe_eval(str, binding)

def safe_eval(str, binding)
  binding.eval(str.gsub(/\Aeval /, ""), "(byebug)", 1)
rescue StandardError, ScriptError => e
  yield(e)
end