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