On May 28, 2013, at 8:43 AM, dgrnbrg wrote: > There's not much you can do to retrieve the locals around an exception with > adding a Java Agent. REDL is able to get the locals around uses of > redl.core/break, since it's a macro and that's an ability of macros.
In Common Lisp exceptions are handled in the contexts in which they occur, so if you handle the exception by stopping execution and presenting a REPL (which is the default) then the locals don't have to be "retrieved" -- they're just still where they were, and where the REPL is too. And there are functions that let you look at locals throughout the stack (graphically browsable in IDEs, but REPL-accessible in any event). I gather that one can't handle exceptions "in context" like this in Java... but I'm approaching this from the Lisp side and don't really know... I see some related discussions (e.g. in https://news.ycombinator.com/item?id=438125) but it's not clear to me what the bottom line is. If it *is* possible to get this kind of behavior in Clojure than that would be a beautiful thing. -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.