Hacker News new | ask | show | jobs
by DaveWM 1811 days 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.

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.

2 comments

That 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.
Ah 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.
Cursive'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?