[RAPPS] Enable _DEBUG and fix assertion failures