Hi, I’m trying to use Calva’s debugger, it works when evaluating code (the execution breaks on #break
), but not when running the application (a web server using Pedestal & Lacinia), do i need to configure something?
Thank you, so basically i’m putting the break point in a Lacinia resolver and using Integrant to manage the state, So I tried to put break#
then reload the app using (reset)
then call the endpoint that triggers that resolver, but it didn’t stop on the break.
i tried to do the same, without the (reset)
, but still it didn’t work.
for the Eval On Save option it’s off
Actually I tried Emacs’s cider debugger and it has the same behavior.
P.S: I used Cursive’s debugger before, and it worked for me
Interesting. So it seems to have something to do with how things are evaluated and how cider-nrepl's debug middleware works (Calva and Cider use the same debug middleware). I haven't worked with lacinia or Integrant, but if you provide a sample project or point to some template that this can be reproduced in, in an issue, that would help. Maybe we can figure out why this behavior occurs and document it or find a workaround.
I’ll try to make a minimal sample project, thank you 🙏
Thank you!