Yet another way you can get a repl into an existing process running on the
JVM:
https://github.com/wirde/swank-inject
Disclaimer:
It's a hack
It uses JDI to connect to the process (requires remote debugging on the
target, but no other modifications)
Won't work well for some classloader
That looks very interesting Dave - can you give a bit more information
on what sorts of things you can actually do once you have a REPL
connected? (in terms of how to access / explore things inside the
running Java application)
On Wed, Jul 13, 2011 at 4:06 PM, David Powell wrote:
> I wrote a tool
I wrote a tool called liverepl a while ago:
https://github.com/djpowell/liverepl
It effectively lets you get a repl into a Java or Clojure process, but it
has the nice feature that it works with any Java processes without requiring
any modifications to the code. It uses the Java Attach API, whic
This is great !!!
But you should posting it in a blog and compare it with other
solutions.
On Jul 12, 2:31 am, Asim Jalis wrote:
> I have been using the Clojure REPL to debug a large Java server app.
> It's great for exploratory testing and for validating assumptions
> about how the system works.
I have been using the Clojure REPL to debug a large Java server app.
It's great for exploratory testing and for validating assumptions
about how the system works. I wanted to post the code here in case
someone else finds this useful.
1. Stick this in a class that is loaded early in the server/app.