Hello, On Fri, Sep 4, 2009 at 4:01 AM, James Sofra<james.so...@gmail.com> wrote: > > Hi, > > I am not familiar with the Python code.interact() thing and what it > does so I may be missing something but if you are looking to do > debugging is there a reason you can't use a Java debugger to debug > your Clojure code? (I have heard some people have had success for > JSwat.) I guess that is not the same as having a REPL.
A basic code.interact sample (the >>> used by Python as prompt may look like email quotations in some clients): IDLE 1.2.4 >>> import code >>> def testCodeInteract(): a = 1 b = 2 code.interact("Test Code Interact", raw_input, locals()) >>> a <--- this is the IDLE repl Traceback (most recent call last): File "<pyshell#6>", line 1, in <module> a NameError: name 'a' is not defined >>> testCodeInteract() Test Code Interact >>> a <--- this is the 'inner' code.interact() repl, 'a' is bound here 1 >>> a + b 3 >>> <--- pressed Ctrl-D to exit the inner repl >>> <--- outer repl again I'll take a look at JSwat, even though I'm quite comfortable with a REPL in Emacs to test small pieces of code (plus automated tests later) and 'printf debugging' - the problem is they are sometimes not enough at the worst moments, so a more capable debugger would come in handy. Thanks, -- Miron Brezuleanu --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---