On Sat, Dec 31, 2005 at 04:03:54PM +0100, Mario Scalas wrote:
> What happens:
> 1) I put a breakpoint after I create an object of some class
> 2) In the debugger "variables" view I can see the variable with the '+' 
> (well, 
> an arrow under GTK, meaning I can expand it)
> 3) I click upon the '+' but nothing happens: object's fields do not appear 
> and 
> the '+' is gone :|

I know the problem and after digging the source the attached little
patch does the trick for me.

I can't test it on windows, but it also should work.

Regards
        Matthias Berndt
Index: eclipseDebug.rb
===================================================================
RCS file: 
/cvsroot/rubyeclipse/org.rubypeople.rdt.launching/ruby/eclipseDebug.rb,v
retrieving revision 1.17
diff -u -r1.17 eclipseDebug.rb
--- eclipseDebug.rb     13 Oct 2005 19:43:30 -0000      1.17
+++ eclipseDebug.rb     2 Jan 2006 09:07:14 -0000
@@ -408,7 +408,9 @@
               @printer.debug("unknown object id : %s", $2)
             end
           else          
-            obj = debug_eval($', binding)
+#           obj = debug_eval($', binding)
+            obj = ObjectSpace._id2ref(debug_eval($', binding).to_i)
+            @printer.debug("unknown object id : %s", debug_eval($', binding)) 
if (!obj)
           end
           if (obj.class.name == "Array") then
             printArrayElements(obj)

Reply via email to