def set_debug(self, new):
        if type(new) is not bool:
            raise pyhsm.exception.YHSM_WrongInputType(
                'new', bool, type(new))
        old = self.debug
        self.debug = new
        self.stick.set_debug(new)
        return old
Set debug mode.
dataset/ETHPy150Open Yubico/python-pyhsm/pyhsm/base.py/YHSM.set_debug