debug primary indices