Created
January 9, 2019 19:04
-
-
Save joshlarsen/ac539abe47dc25429251f6a25988eea7 to your computer and use it in GitHub Desktop.
Ruby backtrace in IRB
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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