diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-01-08 05:00:25 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-01-08 05:00:25 +0000 |
commit | ee08592d029fdb8fcaab6eafded3d5bc22804d41 (patch) | |
tree | f12f100a2b4900f3533586fa342cad65713f7855 /lib/debug.rb | |
parent | 0f1af179529faf45c3e11a80f26877b9ea1bf910 (diff) | |
download | ruby-ee08592d029fdb8fcaab6eafded3d5bc22804d41.tar.gz ruby-ee08592d029fdb8fcaab6eafded3d5bc22804d41.tar.xz ruby-ee08592d029fdb8fcaab6eafded3d5bc22804d41.zip |
2000-01-08
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/debug.rb')
-rw-r--r-- | lib/debug.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/debug.rb b/lib/debug.rb index d9c4864c1..024365d17 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -109,7 +109,7 @@ class DEBUGGER__ def var_list(ary, binding) ary.sort! - if ary.size > 24 + if false # ary.size < 0 f = open("|less", "w") for v in ary f.printf " %s => %s\n", v, eval(v, binding).inspect @@ -125,7 +125,6 @@ class DEBUGGER__ def debug_variable_info(input, binding) case input when /^\s*g(?:lobal)?$/ - f = open("|less", "w") var_list(global_variables, binding) when /^\s*l(?:ocal)?$/ @@ -162,9 +161,9 @@ class DEBUGGER__ stdout.print "\n" else - obj = debug_eval($', binding) + obj = debug_eval(input, binding) unless obj.kind_of? Module - stdout.print "should be Class/Module: ", $', "\n" + stdout.print "should be Class/Module: ", input, "\n" else len = 0 for v in obj.instance_methods.sort |