Patch from Anders Betn�- prevent disabled breakpoints from being sent to the debugger...
authorstefanbjarni <stefanbjarni>
Wed, 3 Aug 2005 22:15:25 +0000 (22:15 +0000)
committerstefanbjarni <stefanbjarni>
Wed, 3 Aug 2005 22:15:25 +0000 (22:15 +0000)
net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDBGProxy.java

index a0ba1f6..2926870 100644 (file)
@@ -142,11 +142,14 @@ public class PHPDBGProxy {
   }
 
   protected void setBreakPoints() throws IOException, CoreException {
-    IBreakpoint[] breakpoints = DebugPlugin.getDefault().getBreakpointManager().getBreakpoints();
-    for (int i = 0; i < breakpoints.length; i++) {
-      addBreakpoint(breakpoints[i]);
-    }
-  }
+               IBreakpoint[] breakpoints = DebugPlugin.getDefault()
+                               .getBreakpointManager().getBreakpoints();
+               for (int i = 0; i < breakpoints.length; i++) {
+                       if (breakpoints[i].isEnabled()) {
+                               addBreakpoint(breakpoints[i]);
+                       }
+               }
+       }
 
   private String MapPath(PHPLineBreakpoint phpLBP) {
                IPath filename;