ignore bpnumber [count] Set the ignore count for the given breakpoint number. If count is omitted, the ignore count is set to 0. A breakpoint becomes active when the ignore count is zero. When non-zero, the count is decremented each time the breakpoint is reached
(self, arg)
| 838 | complete_condition = _complete_bpnumber |
| 839 | |
| 840 | def do_ignore(self, arg): |
| 841 | """ignore bpnumber [count] |
| 842 | Set the ignore count for the given breakpoint number. If |
| 843 | count is omitted, the ignore count is set to 0. A breakpoint |
| 844 | becomes active when the ignore count is zero. When non-zero, |
| 845 | the count is decremented each time the breakpoint is reached |
| 846 | and the breakpoint is not disabled and any associated |
| 847 | condition evaluates to true. |
| 848 | """ |
| 849 | args = arg.split() |
| 850 | try: |
| 851 | count = int(args[1].strip()) |
| 852 | except: |
| 853 | count = 0 |
| 854 | try: |
| 855 | bp = self.get_bpbynumber(args[0].strip()) |
| 856 | except IndexError: |
| 857 | self.error('Breakpoint number expected') |
| 858 | except ValueError as err: |
| 859 | self.error(err) |
| 860 | else: |
| 861 | bp.ignore = count |
| 862 | if count > 0: |
| 863 | if count > 1: |
| 864 | countstr = '%d crossings' % count |
| 865 | else: |
| 866 | countstr = '1 crossing' |
| 867 | self.message('Will ignore next %s of breakpoint %d.' % |
| 868 | (countstr, bp.number)) |
| 869 | else: |
| 870 | self.message('Will stop next time breakpoint %d is reached.' |
| 871 | % bp.number) |
| 872 | |
| 873 | complete_ignore = _complete_bpnumber |
| 874 |
nothing calls this directly
no test coverage detected