Methods

Class/Module Index [+]

Quicksearch

FeedTools::DebugHelper

Public Class Methods

stack_trace() click to toggle source

Forces a stack_trace without interfering with the program

# File lib/feed_tools/helpers/debug_helper.rb, line 27
def self.stack_trace
  fork do
    ObjectSpace.each_object(Thread) do |th|
      th.raise Exception, "Stack Dump" unless Thread.current == th
    end
    raise Exception, "Stack Dump"
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.