DebugClients/Ruby/DebugClientBaseModule.rb

branch
5_5_x
changeset 3748
3882b6c32713
parent 3160
209a07d7e401
child 4021
195a471c327b
--- a/DebugClients/Ruby/DebugClientBaseModule.rb	Thu Jul 31 22:37:54 2014 +0200
+++ b/DebugClients/Ruby/DebugClientBaseModule.rb	Wed Aug 06 18:54:06 2014 +0200
@@ -893,6 +893,11 @@
             end
             next if matched
             
+            if key.to_s == '$KCODE' or key.to_s == '$=' or key.to_s == '$-K'
+                varlist << [key.to_s, "NilClass", "nil"]
+                next
+            end
+        
             begin
                 if access
                     if key.to_s == key
@@ -903,7 +908,7 @@
                     k = "#{access}[%s]" % key
                     obj = eval(k, binding_)
                 else
-                    obj = eval(key, binding_)
+                    obj = eval(key.to_s, binding_)
                 end
             rescue NameError
                 next
@@ -933,7 +938,7 @@
                     oval = "%d" % obj.length()
                 end
             end
-            varlist << [key, otype, oval]
+            varlist << [key.to_s, otype, oval]
         end
         return varlist
     end

eric ide

mercurial