Module: Byebug::Helpers::FrameHelper

Included in:
DownCommand, FrameCommand, UpCommand, WhereCommand
Defined in:
lib/byebug/helpers/frame.rb

Overview

Utilities to assist frame navigation

Instance Method Summary collapse

Instance Method Details

#jump_frames(steps) ⇒ Object



16
17
18
# File 'lib/byebug/helpers/frame.rb', line 16

def jump_frames(steps)
  adjust_frame(navigate_to_frame(steps))
end

#switch_to_frame(frame) ⇒ Object



9
10
11
12
13
14
# File 'lib/byebug/helpers/frame.rb', line 9

def switch_to_frame(frame)
  new_frame = index_from_start(frame)
  return frame_err("c_frame") if Frame.new(context, new_frame).c_frame?

  adjust_frame(new_frame)
end