How to connect Clojurescript Repl to a running node process

I was wondering if there is a way to associate cljs repl with a nodejs process that I have already started, that is, in debug mode and stopped at a breakpoint.

So, I know that there is https://github.com/bodil/cljs-noderepl , and it works fine for me, but it starts the "sandbox" as it says in the documentation. I would like it to connect to the node process of my choice (e.g. node debug my_project.js).

I can use a regular node debugger, but this simple old JS, not CLJS.

I also looked at nRepl, but that doesn't seem like a solution.

I'm asking about what is possible at the moment, or can I use this type of repl in a browser environment?

thanks

+6
source share
1 answer

I know this a bit later, but I don't think node has a way to communicate with the working environment. nREPL is actually a step there, as it will listen on the nodejs application and allow clients to send its code, but I have not seen the nREPL server for node.js clojurescript.

The best I got is https://plus.google.com/112151928607622120183/posts/fNr5h8BgLEp

0
source

Source: https://habr.com/ru/post/958682/


All Articles