Hello, Miron.

to debug your Clojure scripts in IntelliJ with the appropriate plugin
installed, just create new run configuration for .clj file. It may be
created automatically via Ctrl(Meta)-Shift-F10 default shortcut. After this
you can run it in REPL mode or as a standalone script  and put breakpoints
if you run it in debug mode (Shift-F9 by default).
If you have clojure.jar in one of the libraries you had attached to the
module it will be automatically included to the classpath. Normally, when
you create a new project clojure.jar is suggested to be downloaded
automatically.

With best regards,
Ilya

2010/1/2 Miron Brezuleanu <mbr...@gmail.com>

> 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.
>
> Now when I try to get a REPL (by using clojure.main as the startup class),
> I get an error about clojure/core.clj not being on the classpath. While a
> very rough solution would be to just move clj/clojure somewhere on the path,
> I'd like to know how to change the classpath for a module.
>
> 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).
>
> Since I am a complete IDEA newbie, I'd be very happy if someone who is
> using IDEA to work on Clojure can provide a few pointers. I don't mind
> trying this with Eclipse, so Eclipse advice is welcome too.
>
> Many thanks and Happy New Year everyone,
> --
> Miron Brezuleanu
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@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+unsubscr...@googlegroups.com<clojure%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to