Backtrace on demand
Put this in your app (a rails initialiser works well), and then hit ctrl+t to produce a backtrace of your running app, without stopping it!
trap('INFO') do
  puts "\n\n#{Process.pid} - #{Thread.current.object_id}"
  puts caller.join("\n")
  puts "\n\n"
endNever again ask yourself WTF is this piece of shit doing?!?
Written by Tom Lea
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Ruby 
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#

 
 
 
 
