Hi,

In message "[ruby-talk:16780] accessing instance variables in ruby debugger"
    on 01/06/23, Ian MacLean <ianm / activestate.com> writes:

|If I have an instance of small ruby class with 2 instance variables
|and I view it in the debugger I get:
|
|"<MyTest:0x2a47188  @myotheritem=12, @myitem=10>"
|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] <an Exception>     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] <expression>     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