summaryrefslogtreecommitdiff
path: root/lib/debug.rb
diff options
context:
space:
mode:
authornahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-07 03:42:00 +0000
committernahi <nahi@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-07 03:42:00 +0000
commit796ca6f201df28484151bd32ae39be5392f2625b (patch)
treefc7fa4b2aaf3f4e22e55f8d5d649b3a52ac74377 /lib/debug.rb
parent0ea74ce4e7e2ecb90b5324bfc2a80e62b0bbc519 (diff)
* lib/debug.rb: revert command parse regexps. [ruby-list:39014] by
Shirai,Kaoru. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/debug.rb')
-rw-r--r--lib/debug.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/debug.rb b/lib/debug.rb
index abb068f..0a105ab 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -507,21 +507,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)?$/