debug document reader