Sat, 09 Nov 2024 17:23:04 +0100
Bugfix for filtering redundant break- and watchpoints.
src/eric7/Debugger/BreakPointModel.py | file | annotate | diff | comparison | revisions | |
src/eric7/Debugger/WatchPointModel.py | file | annotate | diff | comparison | revisions |
--- a/src/eric7/Debugger/BreakPointModel.py Sat Nov 09 17:09:09 2024 +0100 +++ b/src/eric7/Debugger/BreakPointModel.py Sat Nov 09 17:23:04 2024 +0100 @@ -288,7 +288,10 @@ @type list of (str, int, str, bool, bool, int) """ # eliminate redundant break points - newBreakpoints = [b for b in set(breakpoints) if b not in self.breakpoints] + newBreakpoints = [] + for breakpoint in breakpoints: + if breakpoint not in self.breakpoints and breakpoint not in newBreakpoints: + newBreakpoints.append(breakpoint) if newBreakpoints: cnt = len(self.breakpoints)
--- a/src/eric7/Debugger/WatchPointModel.py Sat Nov 09 17:09:09 2024 +0100 +++ b/src/eric7/Debugger/WatchPointModel.py Sat Nov 09 17:23:04 2024 +0100 @@ -248,7 +248,10 @@ @type list of (str, str, bool, bool, int) """ # eliminate redundant break points - newWatchpoints = [w for w in set(watchpoints) if w not in self.watchpoints] + newWatchpoints = [] + for watchpoint in watchpoints: + if watchpoint not in self.watchpoints and watchpoint not in newWatchpoints: + newWatchpoints.append(watchpoint) if newWatchpoints: cnt = len(self.watchpoints)