Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird debugger behavior, not firing on some cases #3729

Open
jpmonettas opened this issue Jul 31, 2024 · 1 comment
Open

Weird debugger behavior, not firing on some cases #3729

jpmonettas opened this issue Jul 31, 2024 · 1 comment
Labels

Comments

@jpmonettas
Copy link
Contributor

Instrumenting code like this makes the debugger behave weirdly, sometimes not firing :

(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.

issue.mp4

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

Copy link

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed soon if no further activity occurs. Thank you for your contribution and understanding!

@github-actions github-actions bot added the stale label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant