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

Method do_enable

Lib/pdb.py:1553–1570  ·  view source on GitHub ↗

enable bpnumber [bpnumber ...] Enables the breakpoints given as a space separated list of breakpoint numbers.

(self, arg)

Source from the content-addressed store, hash-verified

1551 return lineno
1552
1553 def do_enable(self, arg):
1554 """enable bpnumber [bpnumber ...]
1555
1556 Enables the breakpoints given as a space separated list of
1557 breakpoint numbers.
1558 """
1559 if not arg:
1560 self._print_invalid_arg(arg)
1561 return
1562 args = arg.split()
1563 for i in args:
1564 try:
1565 bp = self.get_bpbynumber(i)
1566 except ValueError as err:
1567 self.error(err)
1568 else:
1569 bp.enable()
1570 self.message('Enabled %s' % bp)
1571
1572 complete_enable = _complete_bpnumber
1573

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
enableMethod · 0.45

Tested by

no test coverage detected