#FEATURE by cg
authorClaus Gittinger <cg@exept.de>
Wed, 05 Oct 2016 14:31:01 +0200
changeset 20530 0afdf503f735
parent 20529 e026fd505d16
child 20531 000ea6870da3
#FEATURE by cg class: MethodWithBreakpoints added: #hasEnabledTracepoints changed: #hasEnabledBreakpoints
MethodWithBreakpoints.st
--- a/MethodWithBreakpoints.st	Wed Oct 05 13:59:21 2016 +0200
+++ b/MethodWithBreakpoints.st	Wed Oct 05 14:31:01 2016 +0200
@@ -174,7 +174,22 @@
     "true if any of my breakpoints is actually enabled"
 
     self breakpointsDo:[:any | 
-        any isEnabled ifTrue:[^ true].
+        any isEnabled ifTrue:[
+            any isTracepoint ifFalse:[ ^ true].
+        ].    
+    ].
+    ^ false.
+!
+
+hasEnabledTracepoints
+    "true if any of my tracepoints is actually enabled"
+
+    self breakpointsDo:[:any | 
+        any isEnabled ifTrue:[
+            any isTracepoint ifTrue:[
+                ^ true
+            ].
+        ].
     ].
     ^ false.
 !