summaryrefslogtreecommitdiff
path: root/lib/debug.rb
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-28 11:45:50 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-06-28 11:45:50 +0000
commit2102559f8c15c8b8ba5db2a7d31548555ac0ae48 (patch)
tree31b4e8301737cfe5b262674746faa081bb905bed /lib/debug.rb
parent0148d41a13f0ce7ec5a83f93984fe7aaf9c0e2d2 (diff)
* lib/debug.rb (var_list): Command 'var *' did not work on 1.9(!).
global_variables, local_variables, and instance_variables returns Symbols from 1.9 and need to stringify before evaling it. See #4931. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32271 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index 4fb9d50..e99f698 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -147,7 +147,7 @@ class DEBUGGER__
def var_list(ary, binding)
ary.sort!
for v in ary
- stdout.printf " %s => %s\n", v, eval(v, binding).inspect
+ stdout.printf " %s => %s\n", v, eval(v.to_s, binding).inspect
end
end