module Byebug::FrameFunctions

def print_frame(pos, adjust = false, context=@state.context)

def print_frame(pos, adjust = false, context=@state.context)
  file = context.frame_file(pos)
  line = context.frame_line(pos)
  klass = context.frame_class(pos)
  unless Command.settings[:full_path]
    path_components = file.split(/[\\\/]/)
    if path_components.size > 3
      path_components[0...-3] = '...'
      file = path_components.join(File::ALT_SEPARATOR || File::SEPARATOR)
    end
  end
  frame_num = "##{pos} "
  call_str = get_frame_call(frame_num, pos, context)
  file_line = "at #{CommandProcessor.canonic_file(file)}:#{line}\n"
  print frame_num
  unless call_str.empty?
    print "#{call_str} "
    if call_str.size + frame_num.size + file_line.size > self.class.settings[:width]
      print "\n       "
    end
  end
  print file_line
  #if ENV['EMACS'] && adjust
  #  fmt = (Byebug.annotate.to_i > 1 ?
  #         "\032\032source %s:%d\n" : "\032\032%s:%d\n")
  #  print fmt % [CommandProcessor.canonic_file(file), line]
  #end
end