Fork me on GitHub
#cider
<
2023-03-04
>
Hendursaga21:03:41

Hello everyone! I have a quick question. I see a year ago there was this thread https://clojurians.slack.com/archives/C0617A8PQ/p16455569922592 about a possible CL-style breakloop. What's the state-of-the-art today?

enn19:03:11

@U04S798T3GW this isn't exactly what you are asking for, but I have found that https://github.com/vvvvalvalval/scope-capture has satisfied my desire for CL-style debugging. It lets you set "breakpoints" that don't break. That is, execution continues but all local bindings are captured and you can access them at the REPL after the fact.

enn19:03:14

(apologies if that was previously discussed in the linked thread; that link isn't working for me for some reason)

Hendursaga00:03:35

I've found that project as well - I'll try it sometime

enn14:03:47

The only thing I miss with scope-capture (aside from restarts) is that I would love a way to automatically capture the local bindings when an unhandled exception is thrown, without having to add an sc.api/spy call into my code. Unfortunately I don’t think that’s possible because I don’t think it’s possible to access the binding environment where the exception is raised is available from any exception handler.

Hendursaga21:03:43

Honestly I can deal with not having CL-style restarts, I just want to drop into a REPL with all the local variables and such accessible.