Skip to content

Instantly share code, notes, and snippets.

@joshlarsen

joshlarsen/irb.rb

Created Jan 9, 2019
Embed
What would you like to do?
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
You can’t perform that action at this time.