Only print debug info if RESRC_DEBUG is set.