debug indexing tool