Browse Source

Fixed bug that was caused by breakpoints set on non-executable lines

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@451 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 20 years ago
parent
commit
4bdac6de02
  1. 7
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Breakpoints/NDebugger-Breakpoints.cs

7
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Breakpoints/NDebugger-Breakpoints.cs

@ -113,7 +113,12 @@ namespace DebuggerLibrary @@ -113,7 +113,12 @@ namespace DebuggerLibrary
internal void SetBreakpointsInModule(object sender, ModuleEventArgs e)
{
foreach (Breakpoint b in breakpointCollection) {
// This is in case that the client modifies the collection as a response to set breakpoint
// NB: If client adds new breakpoint, it will be set directly as a result of his call, not here (because module is already loaded)
List<Breakpoint> collection = new List<Breakpoint>();
collection.AddRange(breakpointCollection);
foreach (Breakpoint b in collection) {
b.SetBreakpoint();
}
}

Loading…
Cancel
Save