Re: How to interrupt execution and open a debugger/REPL?

2013-11-12 Thread Mark Mandel
Gah! Thank you, thank you, thank you. That was one thing I was dying for in Clojure (coming from Pry in Ruby). That just made my day. Mark On Wed, Nov 13, 2013 at 1:56 PM, Jason Gilman wrote: > The debug-repl library (https://github.com/georgejahad/debug-repl) is > what you want. I believe t

Re: How to interrupt execution and open a debugger/REPL?

2013-11-12 Thread Jason Gilman
The debug-repl library (https://github.com/georgejahad/debug-repl) is what you want. I believe the macros from Joy of Clojure are based on it if I remember correctly. I just used it earlier this week on a project so I know it works. Let me know if you can't get it working and I can provide assis

Re: How to interrupt execution and open a debugger/REPL?

2013-11-12 Thread Justin Smith
On Tuesday, November 12, 2013 4:21:26 AM UTC-8, Lee wrote: > > > On Nov 12, 2013, at 1:58 AM, juan.facorro wrote: > > > Hi Alexandru, > > > > As Andy pointed out there's the emacs+Ritz option which has quite a few > features, but if the main thing you want to do is inspect the locals and > t

Re: How to interrupt execution and open a debugger/REPL?

2013-11-12 Thread Lee Spector
On Nov 12, 2013, at 1:58 AM, juan.facorro wrote: > Hi Alexandru, > > As Andy pointed out there's the emacs+Ritz option which has quite a few > features, but if the main thing you want to do is inspect the locals and the > current stack trace, you could use a macro as the one presented in the b

Re: How to interrupt execution and open a debugger/REPL?

2013-11-11 Thread juan.facorro
Hi Alexandru, As Andy pointed out there's the emacs+Ritz option which has quite a few features, but if the main thing you want to do is inspect the locals and the current stack trace, you could use a macro as the one presented in the book The Joy of Clojure (Chapter 8

Re: How to interrupt execution and open a debugger/REPL?

2013-11-11 Thread Andy Fingerhut
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

How to interrupt execution and open a debugger/REPL?

2013-11-11 Thread Alexandru Nedelcu
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 co