Skip to content

Commit

Permalink
Variable breakpoint object-centric API.
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenCostiou committed Jun 11, 2020
1 parent 49548f1 commit 34aceee
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/Reflectivity-VariableBreakpoint/Object.extension.st
@@ -0,0 +1,31 @@
Extension { #name : #Object }

{ #category : #'*Reflectivity-VariableBreakpoint' }
Object >> haltOnAccess [
^ VariableBreakpoint watchVariablesInObject: self
]

{ #category : #'*Reflectivity-VariableBreakpoint' }
Object >> haltOnAccessTo: aVariableName [
^VariableBreakpoint watchVariable: aVariableName inObject: self
]

{ #category : #'*Reflectivity-VariableBreakpoint' }
Object >> haltOnRead [
^VariableBreakpoint watchVariablesReadsInObject: self
]

{ #category : #'*Reflectivity-VariableBreakpoint' }
Object >> haltOnReadTo: aVariableName [
^VariableBreakpoint watchVariableReads: aVariableName inObject: self
]

{ #category : #'*Reflectivity-VariableBreakpoint' }
Object >> haltOnWrite [
^VariableBreakpoint watchVariablesWritesInObject: self
]

{ #category : #'*Reflectivity-VariableBreakpoint' }
Object >> haltOnWriteTo: aVariableName [
^VariableBreakpoint watchVariableWrites: aVariableName inObject: self
]

0 comments on commit 34aceee

Please sign in to comment.