Add TD_VERBOSE_DEBUG mode for debugging