diff options
author | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-11 13:41:18 +0000 |
---|---|---|
committer | nahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-08-11 13:41:18 +0000 |
commit | d4506dfcedac975ac63a07a0cdce986498016397 (patch) | |
tree | 7dfbcc63078d9cf9d293289048b4aa072c630d01 /lib/debug.rb | |
parent | 7915b1d2f9c9ef0d60121321541f04f0a0938ad6 (diff) |
* lib/debug.rb(debug_command): inspection command should inspect resulting
value even if it's nil. [ruby-dev:21180] by OMAE, jun <[email protected]>.
* lib/debug.rb(debug_command): incomplete regexp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/debug.rb')
-rw-r--r-- | lib/debug.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/debug.rb b/lib/debug.rb index 9126a11b5f..58ff8e5f2c 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -505,21 +505,21 @@ class Context exit! # exit -> exit!: No graceful way to stop threads... end - when /^\s*v(?:ar)?\s+/ + when /^\s*v(?:ar)?\s+$/ debug_variable_info($', binding) - when /^\s*m(?:ethod)?\s+/ + when /^\s*m(?:ethod)?\s+$/ debug_method_info($', binding) - when /^\s*th(?:read)?\s+/ + when /^\s*th(?:read)?\s+$/ if DEBUGGER__.debug_thread_info($', binding) == :cont prompt = false end - when /^\s*pp\s+/ + when /^\s*pp\s+$/ PP.pp(debug_eval($', binding), stdout) - when /^\s*p\s+/ + when /^\s*p\s+$/ stdout.printf "%s\n", debug_eval($', binding).inspect when /^\s*h(?:elp)?$/ @@ -527,7 +527,7 @@ class Context else v = debug_eval(input, binding) - stdout.printf "%s\n", v.inspect unless (v == nil) + stdout.printf "%s\n", v.inspect end end end |