module Byebug::Helpers::FrameHelper
def navigate_to_frame(jump_no)
def navigate_to_frame(jump_no) current_jumps = 0 current_pos = context.frame.pos loop do current_pos += direction(jump_no) break if out_of_bounds?(current_pos) next if Frame.new(context, current_pos).c_frame? current_jumps += 1 break if current_jumps == jump_no.abs end current_pos end