disable bpnumber [bpnumber ...] Disables the breakpoints given as a space separated list of breakpoint numbers. Disabling a breakpoint means it cannot cause the program to stop execution, but unlike clearing a breakpoint, it remains in the list of breakpoints and ca
(self, arg)
| 1572 | complete_enable = _complete_bpnumber |
| 1573 | |
| 1574 | def do_disable(self, arg): |
| 1575 | """disable bpnumber [bpnumber ...] |
| 1576 | |
| 1577 | Disables the breakpoints given as a space separated list of |
| 1578 | breakpoint numbers. Disabling a breakpoint means it cannot |
| 1579 | cause the program to stop execution, but unlike clearing a |
| 1580 | breakpoint, it remains in the list of breakpoints and can be |
| 1581 | (re-)enabled. |
| 1582 | """ |
| 1583 | if not arg: |
| 1584 | self._print_invalid_arg(arg) |
| 1585 | return |
| 1586 | args = arg.split() |
| 1587 | for i in args: |
| 1588 | try: |
| 1589 | bp = self.get_bpbynumber(i) |
| 1590 | except ValueError as err: |
| 1591 | self.error(err) |
| 1592 | else: |
| 1593 | bp.disable() |
| 1594 | self.message('Disabled %s' % bp) |
| 1595 | |
| 1596 | complete_disable = _complete_bpnumber |
| 1597 |
nothing calls this directly
no test coverage detected