Skip to content

Instantly share code, notes, and snippets.

@joshlarsen
Created January 9, 2019 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshlarsen/ac539abe47dc25429251f6a25988eea7 to your computer and use it in GitHub Desktop.
Save joshlarsen/ac539abe47dc25429251f6a25988eea7 to your computer and use it in GitHub Desktop.
Ruby backtrace in IRB
begin
# Some exception throwing code
rescue => e
puts "Error during processing: #{$!}"
puts "Backtrace:\n\t#{e.backtrace.join("\n\t")}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment