将clojure / scala repl附加到正在运行的JVM [英] Attach a clojure / scala repl to a running JVM

查看:157
本文介绍了将clojure / scala repl附加到正在运行的JVM的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个java web应用程序运行在tomcat下的Sun java 6 JVM。有没有办法附加一个scala或clojure REPL到正在运行的JVM?

I have a java web application running under tomcat in a Sun java 6 JVM. Is there a way to attach a scala or clojure REPL to the running JVM ?

一旦webapp启动并运行,进行调用的上下文已在运行的虚拟机中设置。因此,这可以真正有助于调用任意的java方法调用以进行增量,探索性开发和调试。

Once the webapp is up and running, the context in which the calls are to be made is already setup in the running VM. Hence, this can be really helpful in invoking arbitrary java method calls for incremental, exploratory development and for debugging.

推荐答案

根据您的要求回答另一个问题:

Copied over the answer from the other question as per your request:

liverepl:将Clojure REPL连接到运行的Java或Clojure进程,无需任何特殊设置

liverepl: Connect a Clojure REPL to running Java or Clojure processes without any special setup

从网站:
启动Clojure REPL,连接到任何正在运行的Java或Clojure进程
,而不需要事先以任何特殊方式设置进程。
现在支持连接到Tomcat Web应用程序。
您可以使用repl运行代码,检查变量,
重新定义Clojure函数。

From the website: Start a Clojure REPL connected to any running Java or Clojure process without needing the process to be setup in any special way beforehand. Now supports connecting to Tomcat web applications. You can use the repl to run code, inspect variables, and redefine Clojure functions.

https://github.com/djpowell/liverepl

这篇关于将clojure / scala repl附加到正在运行的JVM的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆