From: Motohiro KOSAKI Date: 2012-02-08T05:32:04+09:00 Subject: [ruby-core:42413] [ruby-trunk - Feature #839][Rejected] Add code on each line of a backtrace output to the screen Issue #839 has been updated by Motohiro KOSAKI. Status changed from Assigned to Rejected > I believe there is a gem called 'callsite' which does something like this. Maybe others too. OK, thank you for giving very useful comment. now I can close this one safely. ---------------------------------------- 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: Rejected 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/