Project

General

Profile

Actions

Bug #3660

closed

Trace events seem to be missing

Added by rogerdpack (Roger Pack) over 13 years ago. Updated almost 12 years ago.

Status:
Rejected
Target version:
ruby -v:
ruby 1.9.3dev (2010-07-22 trunk 28717) [i386-mingw32]
Backport:
[ruby-core:31633]

Description

=begin
When tracing this code:

a = [1,2,3]
a.each{|n|
p n
}

with 1.9.1 I get "expected output" list this:

http://gist.github.com/506859

However, with 1.9.2+ I get almost no output:

C:\dev\ruby\ruby-prof>ruby -vrtracer test_array.rb
ruby 1.9.2dev (2010-07-02) [i386-mingw32]
#0:test_array.rb:1::-: a = [1,2,3]
#0:test_array.rb:2::-: a.each{|n|
#0:test_array.rb:3::-: p n
1
#0:test_array.rb:3::-: p n
2
#0:test_array.rb:3::-: p n
3

This on windows and Linux.
Unless it's expected, in which case it's just missing the return statement.
Thanks.
-r
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0