From: matz@... (Yukihiro Matsumoto) Date: 2001-06-23T21:51:48+09:00 Subject: [ruby-talk:16803] Re: accessing instance variables in ruby debugger Hi, In message "[ruby-talk:16780] accessing instance variables in ruby debugger" on 01/06/23, Ian MacLean writes: |If I have an instance of small ruby class with 2 instance variables |and I view it in the debugger I get: | |"" |however if | |I enter "v i obj" ( view instance variables of obj ) I get | @myitem => nil | @myotheritem => nil It's a bug. --- debug.rb~ Wed Mar 21 17:04:12 2001 +++ debug.rb Sat Jun 23 09:40:44 2001 @@ -195,7 +195,7 @@ when /^\s*i(?:nstance)?\s+/ obj = debug_eval($', binding) - var_list(obj.instance_variables, binding) + var_list(obj.instance_variables, obj.instance_eval{binding()}) when /^\s*c(?:onst(?:ant)?)?\s+/ obj = debug_eval($', binding) @@ -535,7 +535,7 @@ cat[ch] set catchpoint to an exception b[reak] list breakpoints cat[ch] show catchpoint - del[ele][ nnn] delete some or all breakpoints + del[ete][ nnn] delete some or all breakpoints disp[lay] add expression into display expression list undisp[lay][ nnn] delete one particular or all display expressions c[ont] run until program ends or hit breakpoint