module Byebug::EvalFunctions

def eval_with_setting(binding, expression, stack_on_error)

Parameters:
  • stack_on_error (Boolean) -- Whether to show a stack trace on error.
  • expression (String) -- Expression to evaluation
  • binding (Binding) -- Context where to evaluate the expression
def eval_with_setting(binding, expression, stack_on_error)
  allowing_other_threads do
    if stack_on_error
      bb_eval(expression, binding)
    else
      bb_warning_eval(expression, binding)
    end
  end
end