From: "ko1 (Koichi Sasada)" Date: 2012-10-30T09:09:22+09:00 Subject: [ruby-core:48570] [ruby-trunk - Bug #4583][Rejected] trace doesn't work for methods set up by attr_* Issue #4583 has been updated by ko1 (Koichi Sasada). Status changed from Feedback to Rejected No feedback. ---------------------------------------- Bug #4583: trace doesn't work for methods set up by attr_* https://bugs.ruby-lang.org/issues/4583#change-31954 Author: QaDeS (Michael Klaus) Status: Rejected Priority: Normal Assignee: ko1 (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://bugs.ruby-lang.org/