# File lib/ruby-debug-base.rb, line 136
    def post_mortem
      raise "Post-mortem is already activated" if self.post_mortem?
      self.post_mortem = true
      if block_given?
        begin
          yield
        rescue Exception => exp
          handle_post_mortem(exp)
          raise
        ensure
          self.post_mortem = false
        end
      else
        debug_at_exit do
          handle_post_mortem($!) if $! && post_mortem?
        end
      end
    end