简体   繁体   English

将Clojurescript Repl连接到运行节点进程的方法

[英]Way to connect Clojurescript Repl to running node process

I was wondering if there is a way to connect a cljs repl to a nodejs process that I already have running, that is say in debug mode and stopped at a breakpoint. 我想知道是否有办法将cljs repl连接到我已经运行的nodejs进程,也就是说在调试模式下并在断点处停止。

So I know there is https://github.com/bodil/cljs-noderepl , and I have this running fine, but it starts up a 'sandboxed environment' as it says in the documentation. 所以我知道有https://github.com/bodil/cljs-noderepl ,我运行正常,但它启动了一个“沙盒环境”,如文档中所述。 I'd like it to connect to a node process of my choosing (eg node debug my_project.js). 我希望它连接到我选择的节点进程(例如节点调试my_project.js)。

I can use the normal node debugger, but that's plain old JS, not CLJS. 我可以使用普通的节点调试器,但这是普通的旧JS,而不是CLJS。

I also looked into nRepl, but that doesn't seem to be the solution. 我也研究了nRepl,但这似乎不是解决方案。

Is what I'm asking for possible at the moment, or can I only do this type of repl in a browser environment? 我目前要求的是什么,或者我只能在浏览器环境中进行这种类型的repl?

Thanks 谢谢

I know it's a bit late, but I don't think node has a way to communicate with a running enviroment. 我知道它有点晚了,但我认为节点没有办法与正在运行的环境进行通信。 nREPL actually is a step there as it will listen in a nodejs app and let clients send it code, but I haven't seen a nREPL server for node.js clojurescript. nREPL实际上是一个步骤,因为它将在nodejs应用程序中监听并让客户端发送代码,但我还没有看到node.js clojurescript的nREPL服务器。

The best I've gotten is https://plus.google.com/112151928607622120183/posts/fNr5h8BgLEp 我得到的最好的是https://plus.google.com/112151928607622120183/posts/fNr5h8BgLEp

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM