mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/debug.rb(debug_command): inspection command should inspect resulting
value even if it's nil. [ruby-dev:21180] by OMAE, jun <jun66j5@ybb.ne.jp>. * lib/debug.rb(debug_command): incomplete regexp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4367 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7915b1d2f9
commit
d4506dfced
2 changed files with 13 additions and 6 deletions
|
@ -1,3 +1,10 @@
|
|||
Mon Aug 11 22:31:50 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
|
||||
* lib/debug.rb(debug_command): inspection command should inspect
|
||||
resulting value even if it's nil. [ruby-dev:21180] by OMAE, jun
|
||||
<jun66j5@ybb.ne.jp>.
|
||||
|
||||
* lib/debug.rb(debug_command): incomplete regexp.
|
||||
|
||||
Mon Aug 11 17:33:07 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* eval.c (rb_call_super): do not use rb_block_given_p() for
|
||||
|
|
12
lib/debug.rb
12
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
|
||||
|
|
Loading…
Reference in a new issue