Skip to content

Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →

instance method

Thread#add_trace_func

(untyped proc) -> untyped
thr.add_trace_func(proc) → proc

Adds proc as a handler for tracing.

See Thread#set_trace_func and Kernel#set_trace_func.