Breakpoints that were disabled when debug session started can now be enabled
authorEugene Ostroukhov <eugeneo@symbian.org>
Fri, 04 Jun 2010 14:50:48 -0700
changeset 346 98b70930d8f9
parent 345 7723a46fe224
child 347 6c48d84d3490
Breakpoints that were disabled when debug session started can now be enabled
org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/model/WorkspaceBreakpointHandler.java
--- a/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/model/WorkspaceBreakpointHandler.java	Fri Jun 04 09:44:40 2010 -0700
+++ b/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/model/WorkspaceBreakpointHandler.java	Fri Jun 04 14:50:48 2010 -0700
@@ -70,22 +70,19 @@
 		if (!supportsBreakpoint(breakpoint)) {
 			return;
 		}
-		try {
-			if (breakpoint.isEnabled()) {
-				// Class cast is ensured by the supportsBreakpoint
-				// implementation
-				final ChromiumLineBreakpoint lineBreakpoint = (ChromiumLineBreakpoint) breakpoint;
-				IFile file = (IFile) breakpoint.getMarker().getResource();
-				if (!resourceManager.isAddingFile(file)) {
-					final String script = resourceManager.translateResourceToScript(file);
-					if (script != null) {
-						registerBreakpoint(lineBreakpoint, script);
-					}
-				}
-			}
-		} catch (CoreException e) {
-			Activator.log(e);
-		}
+        try {
+            // Class cast is ensured by the supportsBreakpoint implementation
+            final ChromiumLineBreakpoint lineBreakpoint = (ChromiumLineBreakpoint) breakpoint;
+            IFile file = (IFile) breakpoint.getMarker().getResource();
+            if (!resourceManager.isAddingFile(file)) {
+                final String script = resourceManager.translateResourceToScript(file);
+                if (script != null) {
+                    registerBreakpoint(lineBreakpoint, script);
+                }
+            }
+        } catch (CoreException e) {
+            Activator.log(e);
+        }
 	}
 
 	public void breakpointChanged(IBreakpoint breakpoint, IMarkerDelta delta) {