How can I force Ruby to show a full stack trace? [duplicate]

begin
  # Code that raises exception
rescue StandardError => e
  puts e.backtrace
end

Leave a Comment