Hi Craig, On Fri, Oct 24, 2008 at 6:23 AM, Craig Andera <[EMAIL PROTECTED]> wrote: > > [Tried sending this before. Never appears to have shown up. Trying > again after mucking with my Google account some.] > > On Tue, Oct 21, 2008 at 11:11 AM, Allen Rohner <[EMAIL PROTECTED]> wrote: >> >>> I wonder if this doesn't have something to do with the fact that I'm >>> doing everything via the REPL. Is it possible to break on code you've >>> evaluated via M-x slime-eval-buffer? I'm able to set breakpoints in >>> (e.g.) boot.clj. >> >> I think it does. The compiler associates a file name line number with >> each line in your file. The debugger uses those line numbers to set >> breakpoints i.e. "set breakpoint on file foo.clj, line 15". Eval-ing >> into the repl you don't get useful line numbers. Try using slime-load- >> file. > > No love with slime-load-file. When I get some time I'll try sticking > my code into a .jar and see if that gets me anywhere. > > Or has anyone ever gotten this to work?
I was able to get JSwat to work with Clojure (see my blog post from yesterday: http://bc.tech.coop/blog/081023.html) Are you doing all of the following: 1. Specify the appropriate debug options when you start Clojure (see step #4 in my blog post) 2. Load the Clojure source file you want to debug (you can't debug definitions created in the repl) 3. Start JSwat and use the "Session/Attach..." menu option to attach to the correct host/port (in my case, "localhost" and "8888" since I'm debugging a local Java instance and I specified port "8888" when I started Java) 4. In JSwat, open the same Clojure source file you loaded in step #2 and add a breakpoint (you can just click on the source line#) - note that you can only add breakpoints to lines in a defn, not lines in a defmacro definition 5. In the Clojure repl evaluate a form that will call the function that has your breakpoint. 6. In JSwat, you should see that the breakpoint has been hit and program execution is paused -- Bill Clementson --~--~---------~--~----~------------~-------~--~----~ 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 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 -~----------~----~----~----~------~----~------~--~---