debug doc generation