diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-08-14 03:56:28 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 1998-08-14 03:56:28 +0000 |
commit | 39ac1d7c22072f2d520738098692bdbce2f380df (patch) | |
tree | 97866a3781af260ce47912f61a6190b9d72270f4 /lib/debug.rb | |
parent | c086e784e200dc555e3f6d0ddb2edfdffd4f166d (diff) |
*** empty log message ***
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/v1_1r@286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/debug.rb')
-rw-r--r-- | lib/debug.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/debug.rb b/lib/debug.rb index 2e3a29aa9e..90270a3fe7 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -176,7 +176,7 @@ class DEBUGGER__ printf "no sourcefile available for %s\n", file end when /^p\s+/ - p debug_eval($', binding) + p debug_eval($', binding) #' else v = debug_eval(input, binding) p v unless v == nil @@ -194,10 +194,13 @@ class DEBUGGER__ return "\n" unless line return line end + save = $DEBUG begin + $DEBUG = FALSE f = open(file) lines = @scripts[file] = f.readlines rescue + $DEBUG = save @scripts[file] = TRUE return "\n" end |