diff options
Diffstat (limited to 'lib/debug.rb')
-rw-r--r-- | lib/debug.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/debug.rb b/lib/debug.rb index 7b95475dce..6c4d80e5a7 100644 --- a/lib/debug.rb +++ b/lib/debug.rb @@ -7,6 +7,7 @@ if $SAFE > 0 end require 'tracer' +require 'pp' class Tracer def Tracer.trace_func(*vars) @@ -510,6 +511,9 @@ class DEBUGGER__ prompt = false end + when /^\s*pp\s+/ + PP.pp(debug_eval($', binding), 79, stdout) + when /^\s*p\s+/ stdout.printf "%s\n", debug_eval($', binding).inspect |