Is it possible to set breakpoint using nrepl-ritz?

424 views
Skip to first unread message

xumingming64398966

unread,
Mar 13, 2013, 1:00:44 PM3/13/13
to clo...@googlegroups.com
Is it possible to set breakpoint using nrepl-ritz?

Hugo Duncan

unread,
Mar 13, 2013, 2:00:24 PM3/13/13
to clo...@googlegroups.com
"xumingming64398966"<xumingmin...@gmail.com> writes:

> Is it possible to set breakpoint using nrepl-ritz?

It is using the latest development code (C-c C-x C-b on the line to
break at). A release should be out containing this in the next few
days.

Hugo

Warren Lynn

unread,
Mar 15, 2013, 11:24:36 PM3/15/13
to clo...@googlegroups.com

It is using the latest development code (C-c C-x C-b on the line to
break at).  A release should be out containing this in the next few
days.

Hugo

I was eager to use the line debugging commands but had no success. After "M-x nrepl-ritz-jack-in", I loaded a clojure file (just the simple "hello world" generated by "lein new"), and set a breakpoint at a line with "M-x nrepl-ritz-line-breakpoint". Now, when I run this function in the nrepl buffer, it just hangs and never returns. Without setting the breakpoint everything works fine. Anybody has succeeded on using  the debugger? Thanks.

BTW, it seems nrepl-ritz can also hang on other comands. For example, when I run "M-x nrepl-ritz-apropos" and input "core", it just hangs (but with input "map", it works).

Thanks for the work.


Hugo Duncan

unread,
Mar 16, 2013, 9:14:58 AM3/16/13
to clo...@googlegroups.com
Warren Lynn <wrn....@gmail.com> writes:

>> It is using the latest development code (C-c C-x C-b on the line to
>> break at). A release should be out containing this in the next few
>> days.
>>
>> Hugo
>>
>
> I was eager to use the line debugging commands but had no success. After
> "M-x nrepl-ritz-jack-in", I loaded a clojure file (just the simple "hello
> world" generated by "lein new"), and set a breakpoint at a line with "M-x
> nrepl-ritz-line-breakpoint". Now, when I run this function in the nrepl
> buffer, it just hangs and never returns. Without setting the breakpoint
> everything works fine. Anybody has succeeded on using the debugger? Thanks.

You'll need to set nrepl-ritz-break-on-exception for breakpoints to work
properly at the moment. This should be a temporary restriction.

> BTW, it seems nrepl-ritz can also hang on other comands. For example, when
> I run "M-x nrepl-ritz-apropos" and input "core", it just hangs (but with
> input "map", it works).

Could you create an issue for this.

Thanks

Hugo

Warren Lynn

unread,
Mar 16, 2013, 11:46:00 AM3/16/13
to clo...@googlegroups.com

Could you create an issue for this.



Just did that.

Even with "M-x  nrepl-ritz-break-on-exception" (and adding an (throw ...) in the code), it still does not work for me. Just hangs. Also after "M-x  nrepl-ritz-break-on-exception", my "ac-nrepl" does not work anymore, Whenever auto completion kicks in, it hangs (and I have to kill Emacs). Anybody else experienced this? Thanks.

Hugo Duncan

unread,
Mar 24, 2013, 9:04:49 AM3/24/13
to clo...@googlegroups.com
intronic <mi...@pheasant.co.nz> writes:

>>
>> > Is it possible to set breakpoint using nrepl-ritz?
>>
>> It is using the latest development code (C-c C-x C-b on the line to
>> break at). A release should be out containing this in the next few
>> days.
>>
>
> Can you explain how to use the latest dev code?
>
> Looking at project.clj files on github.com/pallet/ritz, there is a version
> "0.7.1-SNAPSHOT"
> but i dont find this version in clojars.org.
> I tried git cloning pallet/ritz with the thought to make symlinks in my
> project checkouts dir, but I cant figure out how to make the right symlinks
> into the pallet/ritz nested project structure.

I need to release the latest dev code, but I would like to make the
breakpoint handling a little more robust first.

I shalln't be releasing snapshot jars to clojars, but you can build them
locally with a `lein install` from the top level of the ritz project
clone.

> Also - slime with common lisp can parse compile errors giving shortcut keys
> to jump to the code refered to by the compiler error message. Is this
> possible with nrepl/ritz?

That capability is in nrepl.el 1.7.

Hugo
Reply all
Reply to author
Forward
0 new messages