Snippets and thoughts from a passionate software developer interested in all things DevOps, Continuous Delivery, Functional Programming, Distributed Systems. Also on Twitter as @mcallana.
Thursday, June 7, 2012
Ruby: Printing the current stacktrace
begin
Math.sqrt(-1) # any error will do rescue => e puts e.inspect puts e.backtrace end