New debug function of segmentation