summaryrefslogtreecommitdiff
path: root/lib/debug.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-01-08 05:00:25 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-01-08 05:00:25 +0000
commita69b9bce318b3d4717b92a8747ecdb4e71585c5d (patch)
treef12f100a2b4900f3533586fa342cad65713f7855 /lib/debug.rb
parenta3da8465b4406e01b9b597e0af81dad3f65c5528 (diff)
2000-01-08
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index d9c4864c16..024365d174 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