I haven't done it personally, but there is strong evidence that the answer
is "Yes, if you use Emacs + extra libraries from Ritz" [1].  There is a
demo in the video presentation by Hugo Duncan showing this. [2]  I believe
[3] is an up-to-date brief set of instructions for installing these things
on top of Emacs.

If you use 'java -cp clojure.jar clojure.main' or 'lein repl', then the
answer is no (at least it is right now).  There was a recent discussion
thread you may want to read on this topic [3].

Andy

[1] https://github.com/pallet/ritz
[2] http://www.infoq.com/presentations/ritz-clojure
[3]
http://ianeslick.com/2013/05/17/clojure-debugging-13-emacs-nrepl-and-ritz/
[4] https://groups.google.com/forum/#!topic/clojure/8a1FjNvh-ZQ



On Sun, Nov 10, 2013 at 10:33 PM, Alexandru Nedelcu
<a...@bionicspirit.com>wrote:

> Hi,
>
> I'm a rookie. Having worked with Python and Ruby, I love how in those
> languages you can simply do something like:
>
>     import pdb; pdb.set_trace()
>
> Or in Ruby:
>
>     require 'ruby-debug'; debugger
>
> So is there any way in Clojure to pause execution and open some sort
> of debugger / REPL in the console with the current stack-trace and
> local vars visible?
>
> Thanks,
>
> --
> Alexandru Nedelcu
> www.bionicspirit.com
>
> PGP Public Key: http://goo.gl/ZyQpGv
>
> --
> --
> 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.
>

-- 
-- 
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