clojure-emacs / clojure-emacs/cider-nrepl
Weird debugger behavior, not firing on some cases
- Dominant language
- Clojure
- Stars
- 749
- Forks
- 182
- Avg merge
- 1d 7h
- Merged PRs (30d)
- 6
Description
Instrumenting code like this makes the debugger behave weirdly, sometimes not firing :
```clojure
(add-lib 'prismatic/schema {:mvn/version "1.4.1"})
(require '[schema.core])
(schema.core/defn fibo-iter-with-schema
([n :- schema.core/Int] (fibo-iter-with-schema 0 1 n))
([curr :- schema.core/Int
nxt :- schema.core/Int
n :- schema.core/Int]
(cond
(zero? n) curr
:else (recur nxt (+ curr nxt) (dec n)))))
```
I'm attaching a small video that I think describes it better.
https://github.com/user-attachments/assets/0f58bb0b-250c-4af0-b037-c3e17160fb8d
I'm also not sure why the debugger is popping up on instrumentation, looks like `schema.core/defn` macroexpansion is calling some already instrumented code.
## Environment & Version information
### CIDER version information
```
;; CIDER 1.15.0-snapshot (package: 20240603.825), nREPL 1.3.0-beta2
;; Clojure 1.12.0-beta1, Java 17.0.12-ea
```
### Emacs version
29.4
### Operating system
Debian Linux
Contributor guide
Assessment
This issue has not been assessed yet.