Project

General

Profile

Actions

Feature #839

closed

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

Added by rogerdpack (Roger Pack) about 16 years ago. Updated almost 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 master - Feature #1906: Kernel#backtrace: Objectifying Kernel#callerClosedmatz (Yukihiro Matsumoto)08/07/2009Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0