But concerning Eclipse (and its counterclockwise plugin), what you
describe here works well AFAIK.
It's also possible to place breakpoints on your own .clj files.
You can quickly start from here :
http://code.google.com/p/counterclockwise/wiki/Documentation#Install_Counterclockwise_plugin
HTH,
--
Laurent
2010/1/1 Miron Brezuleanu <mbr...@gmail.com>:
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient with your
> first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
Are you using the La Clojure plugin? You can start a REPL console from
the tools menu (Tools ->Clojure REPL -> Add New, bound to CTRL-ALT-A
by default).
If not, the best thing would be to install it:
1. go to File -> Settings
2. select the Plugins section from the list on the left
3. type clojure into the plugin search box
4. select the La Clojure plugin (it'll be under the "available" tab
5. click on the "install" button at the top left of the plugins page
> I did try playing with the module settings and add a 'library' which has a
> path to clj/clojure, but I must be doing something wrong, as it doesn't seem
> to affect the -cp option of the java invocation (I'm checking this using the
> output window).
The REPL that LaClojure gives you will have the same class path as
your clojure project - so you should have both Clojure & Clojure
Contrib available, as well as any libraries that your project has
defined.
Hope this helps!
Cheers,
Ian.
I developed Clojure in IntelliJ and still do (the Java part).
In your Run/Debug configuration:
Main class: clojure.main
VM Parameters: -server -cp clojure-slim.jar
Working directory: /wherever/you/put/clojure
Before launch: Run Ant target 'clojure-slim'
This will give you REPL in IntelliJ's IDE. That's not a great REPL,
but will let you walk through Clojure internals. With La Clojure you
can also break in .clj files.
Rich
On Fri, Jan 1, 2010 at 5:16 PM, Miron Brezuleanu <mbr...@gmail.com> wrote:
> Hello,
> In order to get a better understanding of how some things happen in Clojure,
> I'd like to step through Clojure code (and I mean the Java code used to
> implement Clojure). Basically, just debug a REPL, set breakpoints etc.
> Since there's a free version of IDEA, I downloaded it and successfully
> created an IDEA project out of existing Clojure sources.
I developed Clojure in IntelliJ and still do (the Java part).
In your Run/Debug configuration:
Main class: clojure.main
VM Parameters: -server -cp clojure-slim.jar
Working directory: /wherever/you/put/clojure
Before launch: Run Ant target 'clojure-slim'
This will give you REPL in IntelliJ's IDE. That's not a great REPL,
but will let you walk through Clojure internals. With La Clojure you
can also break in .clj files.
Rich