Module: Debugger::FrameFunctions

Included in:
DownCommand, UpCommand, WhereCommand
Defined in:
lib/ruby-debug/commands/frame.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#format_frame(frame, pos) ⇒ Object



3
4
5
6
7
# File 'lib/ruby-debug/commands/frame.rb', line 3

def format_frame(frame, pos)
  printf "\032\032" if ENV['EMACS']
  file, line, id = frame.file, frame.line, frame.id
  "#%d %s:%s%s\n" % [pos + 1, file, line, (id ? ":in `#{id.id2name}'" : "")]
end