Debugger: SetBreakpoints DAP request doesn't clear breakpoints in not-yet loaded file
According to the DAP spec, the SetBreakpoints request clears all previously set breakpoints in a file. In cmake it doesn't happen if the file wasn't loaded yet. See cmDebuggerBreakpointManager.cxx:83, Breakpoints[sourcePath].clear()
is not called in the else branch handling the case when file is not loaded.