module Ripl::Debug::Commands

Public Instance Methods

with_post_mortem() { || ... } click to toggle source

from simple-and-basic.com/2009/02/catching-and-examining-exceptions-in-a-irb-session.html

# File lib/ripl/debug.rb, line 47
def with_post_mortem
  Debugger.start
  result = nil
  Debugger.post_mortem do 
    result = yield
  end
  Debugger.stop
  result
end