More document state debugging