MCPcopy Index your code
hub / github.com/RustPython/RustPython / do_disable

Method do_disable

Lib/pdb.py:793–809  ·  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 can

(self, arg)

Source from the content-addressed store, hash-verified

791 complete_enable = _complete_bpnumber
792
793 def do_disable(self, arg):
794 """disable bpnumber [bpnumber ...]
795 Disables the breakpoints given as a space separated list of
796 breakpoint numbers. Disabling a breakpoint means it cannot
797 cause the program to stop execution, but unlike clearing a
798 breakpoint, it remains in the list of breakpoints and can be
799 (re-)enabled.
800 """
801 args = arg.split()
802 for i in args:
803 try:
804 bp = self.get_bpbynumber(i)
805 except ValueError as err:
806 self.error(err)
807 else:
808 bp.disable()
809 self.message('Disabled %s' % bp)
810
811 complete_disable = _complete_bpnumber
812

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected