Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Thread#report_on_exception=
thr.report_on_exception= boolean → true or false
thread.c
View on GitHub ↗
static VALUE
rb_thread_report_exc_set(VALUE thread, VALUE val)
{
rb_thread_ptr(thread)->report_on_exception = RTEST(val);
return val;
}
When set to true, a message is printed on $stderr if an exception kills this thr. See ::report_on_exception for details.
See also report_on_exception.
There is also a class level method to set this for all new threads, see ::report_on_exception=.
See also
.report_on_exception
.report_on_exception=
#report_on_exception
#run
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0