diff -r 2bc31e509810 -r 9fbc7bd21765 DebugClients/Ruby/DebugClientBaseModule.rb --- a/DebugClients/Ruby/DebugClientBaseModule.rb Sun Aug 03 15:21:33 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