add some extra diagnostics

This commit is contained in:
Sam 2015-08-19 16:58:25 +10:00
parent 9364194f36
commit 2203a4147d

@ -93,3 +93,13 @@ if defined?(Rack::MiniProfiler)
# Rack::MiniProfiler.profile_method ActionView::PathResolver, 'find_templates'
end
if ENV["PRINT_EXCEPTIONS"]
trace = TracePoint.new(:raise) do |tp|
puts tp.raised_exception
puts tp.raised_exception.backtrace.join("\n")
puts
end
trace.enable
end