Phil Hagelberg <[email protected]> writes: Hi Phil,
> On Wed, Aug 31, 2011 at 12:27 AM, Tassilo Horn <[email protected]> wrote: >> So the sub-REPL prints its prompt and instantly terminates returning >> nil. This is really annoying, because it makes the use of the really >> useful `break' macro shown in The Joy of Clojure's last chapter >> impossible. > > I'm not sure why it's breaking here, but probably could just use > swank.core/break instead. I believe the Joy of Clojure implementation > is based on that anyway. Using swank.core/break works, however, I like the JoC variant a bit more, or well, I want to be able to use both. The swank variant integrates nicely with the SLIME debugger and shows the call stack including the local environment. That's all very nice, but... ... the JoC variant allows for interactively evaluating arbitrary expressions in the breakpoint's local context. That way, you can set a breakpoint just before the line that breaks your app and experiment what the actual reason including the solution is. So IMO, swank.core/break and joy/break complement each other quite nicely. Bye, Tassilo -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to [email protected] Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/clojure?hl=en
