[slime-devel] Tracing Swank/Slime protocol?

Tobias C. Rittweiler tcr at freebits.de
Tue Jul 28 10:42:04 UTC 2009

Elena Garrulo <egarrulo at gmail.com> writes:

> Hi,
> in order to develop a new Swank front end, I'd like to understand how
> such a module interacts with Slime. Since such protocol seems to be
> undocumented - isn't it? - I think that I could trace Swank from/to
> Slime communication for an already functional module. Is such an
> operation already available?

The protocol is very simple, look at DECODE-MESSAGE, and READ-MESSAGE in
swank.lisp. For RPC events look at DISPATCH-EVENT, and the various
non-Lisp swank server implementations in contrib/.

RPC events from, and to Emacs are logged in the *slime-events*
buffer. You can also set SWANK:*LOG-EVENTS* to T to activate logging at
the server side (for example by placing (setq swank:*log-events* t) into
your ~/.swank.lisp.)


More information about the slime-devel mailing list