Fix clearing temp breakpoints - ensure that the isngs are undisplayed

This commit is contained in:
Ben Jackson 2020-11-22 13:25:10 +00:00
commit 07ec08e664

View file

@ -219,10 +219,14 @@ class ProjectBreakpoints( object ):
def ClearTemporaryBreakpoints( self ):
to_delete = []
for file_name, breakpoints in self._line_breakpoints.items():
self._line_breakpoints[ file_name ] = list( filter(
lambda bp: not bp[ 'options' ].get( 'temporary' ),
breakpoints ) )
for index, bp in enumerate( breakpoints ):
if bp[ 'options' ].get( 'temporary' ):
to_delete.append( ( bp, file_name, index ) )
for entry in to_delete:
self._DeleteLineBreakpoint( *entry )
def _UpdateTemporaryBreakpoints( self, breakpoints, temp_idxs ):