From: Koichi Sasada Date: 2011-06-11T16:18:22+09:00 Subject: [ruby-core:36998] [Ruby 1.9 - Bug #4583][Feedback] trace doesn't work for methods set up by attr_* Issue #4583 has been updated by Koichi Sasada. Status changed from Assigned to Feedback ---------------------------------------- Bug #4583: trace doesn't work for methods set up by attr_* http://redmine.ruby-lang.org/issues/4583 Author: Michael Klaus Status: Feedback Priority: Normal Assignee: Koichi Sasada Category: core Target version: ruby -v: - =begin Methods set up with (({attr_accessor})) or alike are not traceable: class Foo attr_writer :bar def baz=(value) @baz = value end end set_trace_func proc{|*args| puts args.inspect} @foo = Foo.new # will be traced @foo.bar = 'bar' # call to bar= will not be traced @foo.baz = 'baz' # call to baz= will be traced Expected behavior: "c-call" and "c-return" are traced. =end -- http://redmine.ruby-lang.org