Re: Using Clojure To Debug Java Apps

2011-07-14 Thread Johan Wirde
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

Re: Using Clojure To Debug Java Apps

2011-07-13 Thread cran1988
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 asimja...@gmail.com 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

Re: Using Clojure To Debug Java Apps

2011-07-13 Thread David Powell
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,

Re: Using Clojure To Debug Java Apps

2011-07-13 Thread Sean Corfield
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 djpow...@djpowell.net

Using Clojure To Debug Java Apps

2011-07-11 Thread Asim Jalis
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