From: stefanbjarni Date: Wed, 3 Aug 2005 22:15:25 +0000 (+0000) Subject: Patch from Anders Betn�- prevent disabled breakpoints from being sent to the debugger... X-Git-Url: http://secure.phpeclipse.com?hp=ca1defffd8edd06904123c0e3f27150598637230 Patch from Anders Betn�- prevent disabled breakpoints from being sent to the debugger engine. --- diff --git a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDBGProxy.java b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDBGProxy.java index a0ba1f6..2926870 100644 --- a/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDBGProxy.java +++ b/net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDBGProxy.java @@ -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;