I was able to reproduce this, but not always (well initialy I had something different).
This is what I have done :
1) created simple console project
2) replaced the content of the generated main.cpp by this :
#include <iostream>
int main()
{
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
std::cout << "Hello world!" << std::endl;
return 0;
}
3) build the project (-g option !!)
4) put breakpoints on every line in between the 2 empty lines, that's line 11-18
5) debug : continued at every breakpoint (and have the breakpoint window visible)
6) when the debugger was finished, I removed the empty line at line 10
--> all 8 red dots are still there, but the breakpoint window claims I only have a breakpoint at line 11
7) builded this modified source/project and debug
--> there's indeed just 1 breakpoint left, at line 11
reinserted the empty line at line 10
--> the breakpoint shows all 8 breakpoints again !!!
--> but they are ordered from line 18 to line 11 now
9) build the modification and debug
--> indeed 8 breakpoints
ok, let's remove all the breakpoints, but keep the project open.
about the second part, I created my project once again (with another name now, but still main.cpp), use the same content for main.cpp(so that's the code pasted above) and to be ablt to tell the difference I replaced Hello by Bye) :
Status :
The workspace now contains 2 projects : DebugTest (that's the first project "hello") and DebugTest2 (the second one "bye") and the latter one is active.
In this second one, I put again 8 breakpoints (line 11 -18) and build the project (-g option !!) and debug. Switching to the editor tab of the main.cpp of the first project, no red dots visible, so these are only visible in the main.cpp of the second project.
I activate the first project, and start the debugger, the main.cpp editor of the first project get's focus and halts at line 11, 12 ,13 ,...,18 allthough no red dots visible and there should not have been red dots since the breakpoints were set in the other project, but the breakpoints surely are active and present.
Well, conclusion : I can confirm all mentioned bugs ;-)
Thanks for your feedback. In case this is not resolved in the near future I will post bug reports for it. next time feel free to post bug reports yourself, if possible with code examples and steps to reproduce.
Cheers,
Lieven