Skip to content

Commit 2d089fc

Browse files
authored
Update README.md: resume
1 parent 7862920 commit 2d089fc

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,24 @@ Allows `#R`, `#RR` and `#RRR` like `#lang debug`, but they don't add any debug o
6565
-> (x (first y) (second y))
6666
5
6767
-> ; exit this debug-repl by pressing ctrl-D
68+
> ; back in the normal repl
6869
```
6970

71+
### `resume`
72+
73+
```racket
74+
> (require debug/repl)
75+
> (define (f x y)
76+
(debug-repl))
77+
> (f 1 2)
78+
-> ; in the debug-repl now
79+
x
80+
1
81+
-> y
82+
2
83+
-> (+ x y)
84+
3
85+
-> (resume (+ x y)) ; exits the debug-repl by calling resume
86+
3
87+
> ; back in the normal repl
88+
```

0 commit comments

Comments
 (0)