Bug #164

set_trace_func no longer reports 'line', 'call' and 'return' events

Added by Dave Thomas almost 7 years ago. Updated almost 4 years ago.

[ruby-dev:35118]
Status:Closed
Priority:Normal
Assignee:Koichi Sasada
ruby -v: Backport:

Description

=begin
Given the following code:

class Test
def test
a = 1
b = 2
end
end

set_trace_func proc {|event, file, line, id, binding, classname|
printf "%8s %s:%-2d %10s %8s\n", event, file, line, id, classname
}
t = Test.new
t.test

Run under 1.9:

dave[RUBY3/Book 22:09:47*] ruby -v t.rb      
ruby 1.9.0 (2008-06-16 revision 15427) [i686-darwin9.3.0]
c-return t.rb:10 set_trace_func   Kernel
  c-call t.rb:11        new    Class
  c-call t.rb:11 initialize BasicObject
c-return t.rb:11 initialize BasicObject
c-return t.rb:11        new    Class

But, under 1.8:

dave[RUBY3/Book 22:11:17*] /usr/bin/ruby -v t.rb
ruby 1.8.6 (2007-09-24 patchlevel 111) [universal-darwin9.0]
    line t.rb:11               false
  c-call t.rb:11        new    Class
  c-call t.rb:11 initialize   Object
c-return t.rb:11 initialize   Object
c-return t.rb:11        new    Class
    line t.rb:12               false
    call t.rb:2        test     Test
    line t.rb:3        test     Test
    line t.rb:4        test     Test
  return t.rb:3        test     Test

If this is deliberate, I'll update the documentation in the book.

Dave
=end

Associated revisions

Revision 38690
Added by Eric Hodel over 2 years ago

  • lib/rdoc/cross_reference.rb: Fixed matching of C#=== or #===. RDoc bug #164
  • test/rdoc/test_rdoc_cross_reference.rb: Test for above.

  • lib/rdoc/parser/changelog.rb: Fixed parsing of dates. RDoc bug #165

  • test/rdoc/test_rdoc_parser_changelog.rb: Test for above.

  • lib/rdoc/parser.rb: Fixed parsing multibyte files with incomplete
    characters at byte 1024. [ruby-trunk - Bug #6393]
    Fixed handling of -E. [ruby-trunk - Bug #6392]

  • test/rdoc/test_rdoc_options.rb: Test for above.

  • test/rdoc/test_rdoc_parser.rb: ditto.

  • test/rdoc/test_rdoc_parser_c.rb: ditto.

  • test/rdoc/test_rdoc_parser_changelog.rb: ditto.

  • test/rdoc/test_rdoc_parser_markdown.rb: ditto.

  • test/rdoc/test_rdoc_parser_rd.rb: ditto.

  • test/rdoc/test_rdoc_rdoc.rb: ditto.

  • lib/rdoc/tom_doc.rb: Fixed parsing of [] in TomDoc arguments list.
    RDoc bug #167

  • test/rdoc/test_rdoc_tom_doc.rb: Test for above.

  • lib/rdoc.rb: Update version.

Revision 38690
Added by Eric Hodel over 2 years ago

  • lib/rdoc/cross_reference.rb: Fixed matching of C#=== or #===. RDoc bug #164
  • test/rdoc/test_rdoc_cross_reference.rb: Test for above.

  • lib/rdoc/parser/changelog.rb: Fixed parsing of dates. RDoc bug #165

  • test/rdoc/test_rdoc_parser_changelog.rb: Test for above.

  • lib/rdoc/parser.rb: Fixed parsing multibyte files with incomplete
    characters at byte 1024. [ruby-trunk - Bug #6393]
    Fixed handling of -E. [ruby-trunk - Bug #6392]

  • test/rdoc/test_rdoc_options.rb: Test for above.

  • test/rdoc/test_rdoc_parser.rb: ditto.

  • test/rdoc/test_rdoc_parser_c.rb: ditto.

  • test/rdoc/test_rdoc_parser_changelog.rb: ditto.

  • test/rdoc/test_rdoc_parser_markdown.rb: ditto.

  • test/rdoc/test_rdoc_parser_rd.rb: ditto.

  • test/rdoc/test_rdoc_rdoc.rb: ditto.

  • lib/rdoc/tom_doc.rb: Fixed parsing of [] in TomDoc arguments list.
    RDoc bug #167

  • test/rdoc/test_rdoc_tom_doc.rb: Test for above.

  • lib/rdoc.rb: Update version.

History

#1 Updated by Koichi Sasada almost 7 years ago

  • Assignee set to Koichi Sasada

=begin

=end

#2 Updated by Koichi Sasada over 6 years ago

  • Status changed from Open to Closed

=begin

=end

Also available in: Atom PDF