1) Added handling of conditional breakpoint to addBreakoint method.
authorrobekras <robekras>
Sun, 11 Dec 2005 14:42:16 +0000 (14:42 +0000)
committerrobekras <robekras>
Sun, 11 Dec 2005 14:42:16 +0000 (14:42 +0000)
net.sourceforge.phpeclipse.debug.core/src/net/sourceforge/phpdt/internal/debug/core/PHPDBGProxy.java

index e93a7f1..5c7e639 100644 (file)
@@ -293,8 +293,19 @@ public class PHPDBGProxy {
                        phpLBP = (PHPLineBreakpoint) breakpoint;
 
                        //      bpNo= DBGInt.addBreakpoint(phpLBP.getMarker().getResource().getLocation().toOSString(), phpLBP.getLineNumber());
-
-                       bpNo = DBGInt.addBreakpoint(MapPath(phpLBP), phpLBP.getLineNumber());
+                       if (phpLBP.isConditionEnabled ()) {
+                               bpNo = DBGInt.addBreakpoint (MapPath(phpLBP),
+                                                                                        phpLBP.getLineNumber(), 
+                                                                phpLBP.getHitCount(),
+                                                                phpLBP.getCondition ());
+                       }
+                       else {
+                               bpNo = DBGInt.addBreakpoint (MapPath(phpLBP),
+                                                                                        phpLBP.getLineNumber(), 
+                                                                phpLBP.getHitCount(),
+                                                                "");
+                       }
+                       
                        phpLBP.setDBGBpNo(bpNo);
                }
                } catch (IOException e) {