Re: Including debugging information for Clojure code

2016-03-15 Thread Jason Gilman
Thanks for the information. I'll check those out. For others trying to solve the same problem I also found what looks like the relevant code within Counter Clockwise https://github.com/laurentpetit/ccw/blob/fb3a5467087cbe76d6b4fafe36ba7b97f5564228/ccw.core/src/java/ccw/debug/ClojureLineBreakpointAd

Re: Including debugging information for Clojure code

2016-03-14 Thread Colin Fleming
Hi Jason, Things you might be interested in checking out: George Jahad's CDT: https://github.com/georgejahad/cdt. It's kind of old, but the JDI hasn't changed much recently. There's also Ritz: https://github.com/pallet/ritz. Again, I think it's a little bit-rotted these days but there's probably

Re: Including debugging information for Clojure code

2016-03-14 Thread Alex Miller
FYI, I believe the Clojure compiler always emits classes with Java debug information (line numbers, source files, and local variables). On Monday, March 14, 2016 at 6:43:26 PM UTC-5, James Norton wrote: > > > Thanks for the reply. I was able to get it working when I looked at other > classes. T

Re: Including debugging information for Clojure code

2016-03-14 Thread Jason Gilman
That's awesome that you got it working. If you could share any information you found that would be really helpful for others in the future. On Monday, March 14, 2016 at 7:43:26 PM UTC-4, James Norton wrote: > > > Thanks for the reply. I was able to get it working when I looked at other > classes

Re: Including debugging information for Clojure code

2016-03-14 Thread James Norton
Thanks for the reply. I was able to get it working when I looked at other classes. The first class I tried on the list resulted in the exception, but other classes (including those from my test project) worked. And thanks for the note about CIDER. I had looked at those sources briefly, but now

Re: Including debugging information for Clojure code

2016-03-13 Thread Colin Fleming
I don't have much time right now, but AFAIK Cursive is the only debugger using JDI - CIDER has a source manipulation debugger. I don't generally have to do anything special to debug, although I use an IntelliJ layer on top of JDI. I can try to check if it's doing anything with that flag. You can al

Including debugging information for Clojure code

2016-03-13 Thread Jason Gilman
I'd recommend asking on slack. There's a cider channel where they hang out and may be able to answer your question. You can join here https://clojurians.slack.com/ I'd really like to know this information for Proto REPL as well. -- You received this message because you are subscribed to the G

Including debugging information for Clojure code

2016-03-13 Thread James Norton
I have been experimenting with using the Java Debug Interface (JDI) with Clojure, but I am confused about how to get Clojure to include debugging information when compiling to Java byte code. I have created NREPL middleware that is able to attach to the VM using com.sun.jdi.Bootstrap and listen