On 5/28/13 12:19 PM, Lee Spector wrote:
On May 28, 2013, at 2:16 PM, Ben Mabey wrote:
You can disable locals clearing with a compiler flag.  nrepl-ritz even has 
helper function that will compile the given form using that flag.  If you want 
to disable locals clearing on a project wide basis you can do so with lein's 
JVM opts.

Ooo this sounds promising... I'd love to know how to disable locals clearing 
for an entire project and then to dump all of the locals on error, if 
possible...

  -lee


The flag is a system property: "-Dclojure.compiler.disable-locals-clearing=true". So you can add that string to your project.clj's :jvm-opts if you are using lein. This will, of course, slow down your program but when I've used it in the past it hasn't made it unusable for development.


-Ben

--
--
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/groups/opt_out.


Reply via email to