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
vm_trace.c
View on GitHub ↗
static VALUE
thread_add_trace_func_m(VALUE obj, VALUE trace)
{
thread_add_trace_func(GET_EC(), rb_thread_ptr(obj), trace);
return trace;
}
Adds proc as a handler for tracing.
See also
#abort_on_exception=
#alive?
#abort_on_exception
#backtrace
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1