Parent

Files

Debugger::VarLocalCommand

Implements the debugger ‘var local’ command.

Public Instance Methods

execute() click to toggle source
# File cli/ruby-debug/commands/variables.rb, line 138
def execute
  locals = @state.context.frame_locals(@state.frame_pos)
  _self = @state.context.frame_self(@state.frame_pos) 
  locals.keys.sort.each do |name|
    print "  %s => %p\n", name, locals[name]
  end
end
regexp() click to toggle source
# File cli/ruby-debug/commands/variables.rb, line 134
def regexp
  /^\s*v(?:ar)?\s+l(?:ocal)?\s*$/
end

Public Class Methods

help(cmd) click to toggle source
# File cli/ruby-debug/commands/variables.rb, line 151
def help(cmd)
  %{
    v[ar] l[ocal]\t\t\tshow local variables
  }
end
help_command() click to toggle source
# File cli/ruby-debug/commands/variables.rb, line 147
def help_command
  'var'
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.