Method: Debugger::VarLocalCommand#execute
- Defined in:
- lib/ruby-debug/commands/variables.rb
#execute ⇒ Object
155 156 157 158 159 160 161 |
# File 'lib/ruby-debug/commands/variables.rb', line 155 def execute locals = [] _self = @state.context.frame_self(@state.frame_pos) locals << ['self', _self] unless _self.to_s == "main" locals += @state.context.frame_locals(@state.frame_pos).sort.map { |key, value| [key, value] } print prv(locals, 'instance') end |