29 ms·
Cursive's debugger doesn't, but as one of the other posters mentioned there's a library called debug-repl which gives you this: https://github.com/gfredericks/d
by DaveWM 5y ago
Cursive's debugger doesn't, but as one of the other posters mentioned there's a library called debug-repl which gives you this: https://github.com/gfredericks/debug-repl https://github.com/gfredericks/debug-repl.
However, as I mentioned in the article, I've found it's usually better to use scope-capture than a debugger that pauses execution. The main reason is that I mainly work with Kafka Streams atm, and when the debugger pauses one thread other threads start timing out and throwing exceptions.
- billfruit 5y agoThat seems to give a repl at a breakpoint, I was asking about getting a repl at a point of exception. That is what elisp gives.
- DaveWM 5y agoAh sorry, I don't know of a way of doing that in Clojure. What I usually do is figure out where the exception was thrown, wrap that form in `sc.api/spy`, and then somehow re-execute it.
- slifin 5y agoCursive's debugger does let you restart the execution? It's a normal step debugger, and you can run new expressions in context are we talking about lisp restarts?