From: Motohiro KOSAKI Date: 2012-02-08T02:59:46+09:00 Subject: [ruby-core:42405] [ruby-trunk - Feature #839] Add code on each line of a backtrace output to the screen Issue #839 has been updated by Motohiro KOSAKI. > Matz if you get a chance to look at this patch, it "objectify's" Exception#backtrace which might be nice. > Thank you. > -roger Can anyone take a feedback? If nothing, I have to close this ticket sadly. ---------------------------------------- Feature #839: Add code on each line of a backtrace output to the screen https://bugs.ruby-lang.org/issues/839 Author: Roger Pack Status: Assigned Priority: Normal Assignee: Yukihiro Matsumoto Category: core Target version: 2.0.0 =begin This patch adds output to unrescued exceptions' output to the command line: C:\dev\downloads\snap_snapshot>cat bad2.rb def bad raise end def good bad end good > ruby19 bad2.rb bad2.rb:2:in `bad': unhandled exception raise from bad2.rb:5:in `good' bad from bad2.rb:7:in `
' good Wasn't sure if there is a better way to code this up or what not, but here it is. Similar measures could be applied to 1.8.7. Thanks! -=R =end -- http://bugs.ruby-lang.org/