MCPcopy Index your code
hub / github.com/python/cpython / do_disable

Method do_disable

Lib/pdb.py:1574–1594  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

_print_invalid_argMethod · 0.95
errorMethod · 0.95
messageMethod · 0.95
get_bpbynumberMethod · 0.80
splitMethod · 0.45
disableMethod · 0.45

Tested by

no test coverage detected