module Byebug

def handle_post_mortem(exp)

def handle_post_mortem(exp)
  return if !exp || !exp.__debug_context ||
    exp.__debug_context.stack_size == 0
  orig_tracing = Byebug.tracing?
  Byebug.tracing = false
  Byebug.last_exception = exp
  handler.at_line(exp.__debug_context, exp.__debug_file, exp.__debug_line)
ensure
  Byebug.tracing = orig_tracing
end