On Dec 27, 2013, at 11:33 PM, guns wrote: > On Fri 27 Dec 2013 at 11:23:22PM -0500, Lee Spector wrote: >> >> On Dec 27, 2013, at 11:18 PM, guns wrote: >>> >>> (defmacro dump-locals [] ... >>> ` >> When and where do you call this? > > I call this inside of the closest function that raised the exception.
Ah, so you have to see an exception, edit your code to include a call to this, re-run, and get to the same exception. So it will only help for exception-raising situations that are easy to repeat, which mine often are not. > Like you mentioned, I've heard nrepl-ritz does this in emacs, and David > Greenberg has something like this set up for vim: > > https://github.com/dgrnbrg/vim-redl It would be really nice if this sort of thing -- dumping all locals when an exception is raised -- could be done in an IDE-independent way. FWIW my code is often running via "lein run," and when one of those runs raises an exception I'd really like to get more information about what happened. -Lee -- -- 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.