recognition debug code