Project

General

Profile

ActionsLike0

Feature #839

closed

Add code on each line of a backtrace output to the screen

Added by rogerdpack (Roger Pack) over 16 years ago. Updated about 13 years ago.

Status:
Rejected
Target version:
[ruby-core:20416]

Description

=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


Files

add_code_output.diff (2.26 KB) add_code_output.diff rogerdpack (Roger Pack), 12/08/2008 06:29 PM

Related issues 1 (0 open1 closed)

Related to Ruby - Feature #1906: Kernel#backtrace: Objectifying Kernel#callerClosedmatz (Yukihiro Matsumoto)08/07/2009Actions
#6

Updated by shyouhei (Shyouhei Urabe) about 16 years ago

  • Assignee set to matz (Yukihiro Matsumoto)
  • Target version set to 1.9.2
#10

Updated by znz (Kazuhiro NISHIYAMA) almost 15 years ago

  • Category set to core
  • Target version changed from 1.9.2 to 2.0.0
#13

Updated by shyouhei (Shyouhei Urabe) over 14 years ago

  • Status changed from Open to Assigned

Updated by kosaki (Motohiro KOSAKI) about 13 years ago

  • Status changed from Assigned to Rejected
ActionsLike0

Also available in: Atom PDF