class Byebug::Command

def bb_eval(str, b = get_binding)


error full stack trace and error are printed.
Evaluates a string containing Ruby code, using binding +b+. In case of
def bb_eval(str, b = get_binding)
  b.eval(str)
rescue StandardError, ScriptError => e
  at = e.backtrace
  locations = []
  locations << "#{at.shift}: #{e.class} Exception(#{e.message})"
  locations += at.map { |path| "\tfrom #{path}" }
  errmsg(pr('eval.exception', text_message: locations.join("\n")))
  nil
end