add self.debug() method in the doc