The basic observation was as follows :

Suppose I have a java project called "tinyJava" and a clojure project
called "tiny". To use the clojure code in java, I had to export the
clojure as a jar (say ttt.jar), and then in the java project I had to
do the following :

a)Rightclick on project tinyJava & choose properties
b)Choose : Java Build Path
c)Choose : Libraries
d)Click : "Add External Jars"
e)Then go to the location of ttt.jar

This sucessfully linked the projects, however at the point in the java
where the clojure function is called, the debugger could not directly
traverse from the java code to the clojure code (even though the
clojure function worked perfectly well).

On the other hand with Scala, not only could I traverse the code in
this way, but I also did not need to export any jars, instead I simply
"linked" the projects in the following way :

a)Suppose that I have a java project firstScalaJava and a scala
project firstScala.
b)I first rightclick on firstScalaJava,
c)selected Properties,
d)chose Java Build Path,
e)chose Projects tab,
f)clicked "Add",
g)and then selected the firstScala project.

Then at the point in the java code where the scala function is called,
the debugger could directly traverse from the java source to the scala
source.

Thanks

On Aug 30, 4:00 pm, artella <[email protected]> wrote:
> Hi,
>
> I was wondering if it is possible, when calling clojure code from
> within java, to have the debugger step between the java and clojure
> sources at the point where the clojure function is invoked. I have
> outlined the question in more detail at :
>
> http://stackoverflow.com/questions/7230977/debugging-clojure-function...
>
> Thanks

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to