module Byebug::Helpers::FrameHelper

def index_from_start(i)

Parameters:
  • i (Integer) -- Integer to be converted in a proper positive index.
def index_from_start(i)
  i >= 0 ? i : context.stack_size + i
end