Skip to content

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

instance method

Thread#set_trace_func

thr.set_trace_func(proc) → proc
thr.set_trace_func(nil) → nil

Establishes proc on thr as the handler for tracing, or disables tracing if the parameter is nil.

See Kernel#set_trace_func.

See also #run #status #report_on_exception= #stop? also in 4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0