Fork me on GitHub
#cursive
<
2019-10-31
>
ssdev15:10:57

Hello folks, I'm currently trying to debug a ring webapp and curious if it's possible to use linebreaks in cursive with an http request. I'm fairly new to cursive and clojure, so not sure of a good local dev setup for this. Maybe what I'm hoping for isn't possible, but I was hoping that if I hit the local url with a curl I'd be able to step through the functions. Is that a thing I can do?

salam16:10:52

@ssanders i haven't tried this myself but it seems possible to do that. take a look at this: https://stackoverflow.com/questions/56300204/how-to-debug-a-clojure-web-application-in-intellij

ssdev17:10:17

Thanks. That's interesting. So, I'm not using Leiningen, it's a deps.edn setup, so I'm looking at the section about "without leiningen" I actually have it set up like it's described there, but not seeing the linebreaks fire when I hit the localhost.

salam22:10:43

did you start the cursive repl in debug mode and start your app from within that repl?

joaohgomes18:10:29

@ssanders, if you have the chance, check scope capture. It’s a different debugging experience based on Stuart Halloway REPL debugging post: http://blog.cognitect.com/blog/2017/6/5/repl-debugging-no-stacktrace-required https://github.com/vvvvalvalval/scope-capture

4
ssdev20:10:24

This looks promising. Thanks @U4WS1443F