Guard debug dump method (#397)