Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add ClojureScript support to the debugger #1416
The debugger simply fails if used in ClojureScript code, it would be nice for it to work.
Here's a list of things to achieve that. If anyone can help with any of these items, it will likely save me a lot of researching down the road. So please don't be shy.
The last item is hardest. The code in question is just one macro and a few functions in
The problem is that this code interacts with tools.nrepl, which (IIUC) is impossible to do from the cljs environment. So it'll likely involved a deep rethinking of how the debugger works.
added a commit
Nov 13, 2015
referenced this issue
Dec 14, 2015
added a commit
May 21, 2017
I honestly can't decide, what feels to be more work, but ultimately, CPS feels more in-line with the spirit in the existing debugger, of instrumenting the source. A remote-control debugger would totally be worth doing, though, and I'm sure that an RDP-based debugger, targetting Clojure and ClojureScript could be a great success as well.
Initial results on some snippets and even a 2.4M advanced minified JS seemed promising, after fixing some minor issues
I so far found three features missing:
After implementing labelled statement blocks to get acquainted with the code base, I'm pretty confident, that I (and you too) can make it work for everything we need, including the above issues.
If you're interested in helping with this, I'm currently in the process of getting acquainted with cider-debug-middleware's internals. In particular, I'd like to figure out, how to run some hand-crafted code in a clojurescript runtime, to contact cider-debug-middleware with a break-point.
@bbatsov theat's great, thanks for offering!