From: Roger Pack Date: 2008-12-19T21:07:21+09:00 Subject: [ruby-core:20698] [Feature #839] Add code on each line of a backtrace output to the screen Issue #839 has been updated by Roger Pack. heh--I see it--revision 20850, from the diff. That one works for applying it. You're right--something that didn't require reading files would be nice. I suppose the only drawback would be...shouldn't tracer output >> enter x << leave x and if so, wouldn't requiring users to include tracer possibly cause too much console output to be worth the added verbose output? Here's an interesting related request: I also wonder if someday something like this would be possible [1] NoMethodError: undefined method `capitalize' for nil:NilClass from /home/pwilliams/projects/tmp/test.rb:18:in main.greet_user(nil, "williams") from /home/pwilliams/projects/tmp/test.rb:14:in main.third(nil, "williams") from /home/pwilliams/projects/tmp/test.rb:10:in main.second("williams, peter") from /home/pwilliams/projects/tmp/test.rb:4:in main.first("Peter Williams") from (irb):41 from :0 I can think of a way to do this using set_trace_func style stuff to track parameters but that's about it... I'll look at it more sometime. Thoughts? -=R [1] http://barelyenough.org/blog/2005/04/ruby-backtraces/ ---------------------------------------- http://redmine.ruby-lang.org/issues/show/839 ---------------------------------------- http://redmine.ruby-lang.org