class Byebug::Command
def debug_eval(str, b = get_binding)
def debug_eval(str, b = get_binding) begin eval(str, b) rescue StandardError, ScriptError => e if Command.settings[:stack_on_error] at = eval("Thread.current.backtrace_locations", b) print "#{at.shift}: #{e.class} Exception(#{e.message})\n" for i in at print "\tfrom #{i}\n" end else print "#{e.class} Exception: #{e.message}\n" end nil end end