DEBUG()
Returns the thread debug level. Available only if compiled with THREAD_DEBUG=-1.
static VALUE rb_thread_s_debug(void) { return INT2NUM(rb_thread_debug_enabled); }