class Byebug::Context

def stack_size

def stack_size
  return 0 unless backtrace
  backtrace.drop_while { |l| ignored_file?(l.first.path) }
    .take_while { |l| !ignored_file?(l.first.path) }
    .size
end