Fix breakpoint event

Few problems:
 - we were passing a dict instead of a list of breakpoints
 - if the breakpoint had a source which was {} we crashed
 - we didn't support the 'removed' event
This commit is contained in:
Ben Jackson 2020-10-10 15:32:50 +01:00
commit 16f22b396f
3 changed files with 72 additions and 12 deletions

View file

@ -1050,7 +1050,9 @@ class DebugSession( object ):
if reason == 'changed':
self._codeView.UpdateBreakpoint( bp )
elif reason == 'new':
self._codeView.AddBreakpoints( None, bp )
self._codeView.AddBreakpoint( bp )
elif reason == 'removed':
self._codeView.RemoveBreakpoint( bp )
else:
utils.UserMessage(
'Unrecognised breakpoint event (undocumented): {0}'.format( reason ),