End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Thread#backtrace
thread.backtrace → array or nil
thread.c
View on GitHub ↗
static VALUE
rb_thread_backtrace_m(int argc, VALUE *argv, VALUE thval)
{
return rb_vm_thread_backtrace(argc, argv, thval);
}
Returns the current backtrace of the target thread.
See also
#alive?
#backtrace_locations
#add_trace_func
#exit
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0