Module: FeedTools::DebugHelper

Defined in:
lib/feed_tools/helpers/debug_helper.rb

Class Method Summary collapse

Class Method Details

.stack_traceObject

Forces a stack_trace without interfering with the program



27
28
29
30
31
32
33
34
# 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