Class: Module
- Inherits:
-
Object
- Object
- Module
- Defined in:
- lib/ruby-debug.rb
Instance Method Summary collapse
-
#debug_method(meth) ⇒ Object
Wraps the
meth
method with Debugger.start … block.
Instance Method Details
#debug_method(meth) ⇒ Object
Wraps the meth
method with Debugger.start … block.
221 222 223 224 225 226 227 228 229 230 231 |
# File 'lib/ruby-debug.rb', line 221 def debug_method(meth) alias_method "__debugee_#{meth}".to_sym, meth class_eval <<-EOD def #{meth}(*args, &block) Debugger.start do debugger 2 __debugee_#{meth}(*args, &block) end end EOD end |