On Dec 27, 2013, at 11:18 PM, guns wrote: > > I personally use the following macro from my user.clj: > > (defmacro dump-locals [] > `(clojure.pprint/pprint > ~(into {} (map (fn [l] [`'~l l]) (reverse (keys &env)))))) > > It's not the automatic break-on-exception-and-start-local-repl of CL + > Emacs, but it's editor agnostic and usually does the trick.
When and where do you call this? I can live without the local REPL (although I'll always miss it), but what I want is to see the locals when I hit an exception somewhere that I didn't expect one. I'd like every exception to dump locals, all up the stack if possible. Can this, or something like it, do that? -- -- 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.