Skip to content

Commit 47cc122

Browse files
committed
var bp
1 parent d7cfbe2 commit 47cc122

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

sindarin/byexample.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,12 @@ For a better perspective, we can inspect the `sindarin` variable, which opens a
7777

7878
### Variable breakpoint example
7979

80-
81-
sindarin stepUntil: [ sindarin isAssignment and: [ sindarin assignmentVariableName = 'lastIndex' ] ]
80+
```Smalltalk
81+
sindarin := SindarinDebugger debug: [ OrderedCollection new add: 1 ].
82+
sindarin stepUntil: [
83+
sindarin isAssignment and: [
84+
sindarin assignmentVariableName = 'lastIndex' ] ].
85+
sindarin node sourceCode. "'lastIndex := firstIndex - 1'"
86+
```
8287

8388
### Sindarin in the debugger

0 commit comments

Comments
 (0)