MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / do_disable

Method do_disable

tools/python-3.11.9-amd64/Lib/pdb.py:851–867  ·  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

(self, arg)

Source from the content-addressed store, hash-verified

849 complete_enable = _complete_bpnumber
850
851 def do_disable(self, arg):
852 """disable bpnumber [bpnumber ...]
853 Disables the breakpoints given as a space separated list of
854 breakpoint numbers. Disabling a breakpoint means it cannot
855 cause the program to stop execution, but unlike clearing a
856 breakpoint, it remains in the list of breakpoints and can be
857 (re-)enabled.
858 """
859 args = arg.split()
860 for i in args:
861 try:
862 bp = self.get_bpbynumber(i)
863 except ValueError as err:
864 self.error(err)
865 else:
866 bp.disable()
867 self.message('Disabled %s' % bp)
868
869 complete_disable = _complete_bpnumber
870

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