trepan/lib/breakpoint.py
def en_disable_all_breakpoints(self,  do_enable=True):
        "Enable or disable all breakpoints."
        bp_list = [bp for bp in self.bpbynumber if bp]
        bp_nums = []
        if do_enable:
            endis = 'en'
        else:
            endis = 'dis'
            pass
        if not bp_list:
            return "No breakpoints to %sable" % endis
        for bp in bp_list:
            bp.enabled = do_enable
            bp_nums.append(str(bp.number))
            pass
        return ("Breakpoints %sabled: %s" % (endis, ", ".join(bp_nums)))
def en_disable_all_breakpoints(self,  do_enable=True):
        "Enable or disable all breakpoints."
        bp_list = [bp for bp in self.bpbynumber if bp]
        bp_nums = []
        if do_enable:
            endis = 'en'
        else:
            endis = 'dis'
            pass
        if not bp_list:
            return "No breakpoints to %sable" % endis
        for bp in bp_list:
            bp.enabled = do_enable
            bp_nums.append(str(bp.number))
            pass
        return ("Breakpoints %sabled: %s" % (endis, ", ".join(bp_nums)))
def en_disable_all_breakpoints ( self , do_enable = True ) : bp_list = [ bp for bp in self . bpbynumber if bp ] bp_nums = [ ] if do_enable : endis = 'en' else : endis = 'dis' pass if not bp_list : return "No breakpoints to %sable" % endis for bp in bp_list : bp . enabled = do_enable bp_nums . append ( str ( bp . number ) ) pass return ( "Breakpoints %sabled: %s" % ( endis , ", " . join ( bp_nums ) ) )
Enable or disable all breakpoints.
Enable or disable all breakpoints .