From: Dave Thomas Date: 2008-10-29T04:42:55+09:00 Subject: [ruby-core:19581] [Bug #693] Thread#set_trace_func seems not to work Bug #693: Thread#set_trace_func seems not to work http://redmine.ruby-lang.org/issues/show/693 Author: Dave Thomas Status: Open, Priority: Normal trace_func = lambda {|a,b,c,d,e,f| p a} Thread.current.set_trace_func trace_func puts "here" thr = Thread.new do Thread.current.add_trace_func(trace_func) puts "hello" def one puts "in one" end one end thr.join If you replace Thread.set_trace_func with set_trace_func, it reports as expected. ---------------------------------------- http://redmine.ruby-lang.org