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

Unable to instrument function in dependecy for debugging #2493

Open
gerdint opened this issue Apr 4, 2024 · 2 comments
Open

Unable to instrument function in dependecy for debugging #2493

gerdint opened this issue Apr 4, 2024 · 2 comments
Labels

Comments

@gerdint
Copy link
Contributor

gerdint commented Apr 4, 2024

If I go to a function in one of my deps (such as ring.middleware.session.cookie) and try to instrument a function there, such as the below on line 77 (in v1.9.5):

(defn- ^String serialize [x options]
  {:post [(= x (deserialize % options))]}
  (pr-str x))

... the function does not seem to be instrumented for debugging when invoking Calva Debug: Instrument Top Level Form for Debugging.

@PEZ PEZ added the debugger label Apr 4, 2024
@PEZ
Copy link
Collaborator

PEZ commented Apr 4, 2024

I wonder why it doesn't work. We may need to look at what nrepl is doing when instrumenting. Also would be interesting to see if this works with CIDER.

@gerdint
Copy link
Contributor Author

gerdint commented Apr 4, 2024

Yeah, CIDER's behaviour would be enlightening.

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

2 participants