Command
Implements debugger “where” or “backtrace” command.
# File cli/ruby-debug/commands/frame.rb, line 160 def execute (0...@state.context.stack_size).each do |idx| if idx == @state.frame_pos print "--> " else print " " end print_frame(idx) end if truncated_callstack?(@state.context, Debugger.start_sentinal) print "Warning: saved frames may be incomplete;\n" print "compare debugger backtrace (bt) with Ruby caller(0).\n" end end
# File cli/ruby-debug/commands/frame.rb, line 181 def help(cmd) s = if cmd == 'where' %{ w[here]\tdisplay stack frames } else %{ bt|backtrace\t\talias for where - display stack frames } end s += %{ Print the entire stack frame. Each frame is numbered, the most recent frame is 0. frame number can be referred to in the "frame" command; "up" and "down" add or subtract respectively to frame numbers shown. The position of the current frame is marked with -->. } end
Generated with the Darkfish Rdoc Generator 2.