Project

General

Profile

Actions

Bug #693

closed

Thread#set_trace_func seems not to work

Added by pragdave (Dave Thomas) about 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
ruby 1.9.2dev (2010-01-13 trunk 26315) [i386-mingw32]
Backport:
[ruby-core:19581]

Description

=begin
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.
=end


Files

thread_trace.patch (261 Bytes) thread_trace.patch wanabe (_ wanabe), 01/13/2010 07:54 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0