module Byebug::FrameFunctions
def get_frame_block_and_method(pos)
def get_frame_block_and_method(pos) frame_deco_regexp = /((?:block(?: \(\d+ levels\))?|rescue) in )?(.+)/ frame_deco_method = "#{@state.context.frame_method pos}" frame_block_and_method = frame_deco_regexp.match(frame_deco_method)[1..2] frame_block_and_method.map { |x| x.nil? ? '' : x } end