Post details: Stacktraces in Ruby

02/21/06

Permalink 06:21:16 pm, Categories: Ruby, 44 words  

Stacktraces in Ruby

You can get at a stacktrace in Ruby through Kernel#caller
To dump out stacktraces in your code simply add

    caller.each { |l| $stderr.puts l }

(For some reason, I keep forgetting how to do that, and have to Google for it every time)

Permalink

Search

Syndicate this blog XML

What is RSS?

Misc

powered by
b2evolution