Skip to content

End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

Thread#add_trace_func

thr.add_trace_func(proc) → proc

Adds proc as a handler for tracing.

See Thread#set_trace_func and Kernel#set_trace_func.