import net.sourceforge.phpdt.internal.debug.core.model.PHPStackFrame;
import net.sourceforge.phpdt.internal.debug.core.model.PHPThread;
import net.sourceforge.phpdt.internal.debug.core.model.PHPVariable;
+import net.sourceforge.phpeclipse.PHPeclipsePlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
}
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;
}
}
if (pathtranslation && remote) {
- if (path.substring(0, 1).equals("/"))
+ if (remoteSourcePath.toString().substring(0, 1).equals("/"))
path = path.replace('\\', '/');
else
path = path.replace('/', '\\');
DBGInt.continueExecution();
phpLoop.notifyWait();
} catch (IOException e) {
- PHPDebugCorePlugin.log(e);
+ PHPeclipsePlugin.log("Debugging session ended.", e);
stop();
}
}