breakpointer: where am I?

I heard there is a gem around to give you a stack trace in breakpointer, but you can quickly get it without as well. The trick is to raise an exception and immediately catch it, printing it’s stack trace. Blatantly stolen from my Java experience šŸ™‚

begin; raise; rescue Exception => e; puts e.backtrace; end
Explore posts in the same categories: Ruby/Rails

Leave a comment