ide/Debugger: Fix for avoiding confusion between internal breakpoint in main and...
authorJerome St-Louis <jerome@ecere.com>
Tue, 10 Jul 2012 22:28:32 +0000 (18:28 -0400)
committerJerome St-Louis <jerome@ecere.com>
Tue, 10 Jul 2012 22:28:32 +0000 (18:28 -0400)
ide/src/debugger/Debugger.ec

index c7f9692..e3bcd7d 100644 (file)
@@ -464,6 +464,16 @@ class Debugger
                         break;
                      }
                   }
+                  if(bp && bp.type != user && stopItem && stopItem.frame)
+                  {
+                     // In case the user put a breakpoint where an internal breakpoint is, avoid the confusion...
+                     for(i : ide.workspace.breakpoints)
+                     {
+                        if(i.bp && i.line == stopItem.frame.line && !fstrcmp(i.absoluteFilePath, stopItem.frame.absoluteFile))
+                           bp = i;
+                        break;
+                     }
+                  }
                   bpHit = bp;
                   
                   if(!(!userBreakOnInternBreak &&