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 for `set-breakpoint` operations, but it fails with a com.sun.jdi.AbsentInformationException when I try to call .sourceNames on a reference type (obtained by calling .allClasses on the VM). In the Java world this exception indicates that the -g option was not passed to javac - I don't know what the equivalent is in the Clojure world.
I hope the explanation of what I'm trying to do makes sense here. I'm out of my depth so I may be completely off on how things work, but I know there must be some way to get the debugging information included based on the fact that Cursive and CIDER seem to work. If anyone could explain or point me to an explanation I would be very grateful. Thanks, James -- 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 --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.