Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Thread#backtrace
(*untyped args) -> ::Array[untyped]
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.3 · 3.2 · 3.1 · 3.0