conjure icon indicating copy to clipboard operation
conjure copied to clipboard

Common Lisp interactive debugger

Open axvr opened this issue 1 year ago • 2 comments

Hi @Olical,

I was trying out the Common Lisp support in Conjure and noticed that the SWANK client doesn't appear to support Common Lisp's interactive debugger.

Some examples in Conjure:

image

Same examples in SBCL command line:

Screenshot 2024-11-08 at 16 29 21

You can see that no debugger info was printed to Conjure and it doesn't prompt for a debug option to be selected. (The red underline is where it prompted to select a debugger option.)

It may be that #343 is a prerequisite for this.

axvr avatar Nov 08 '24 16:11 axvr

Your issue is also related to issue #281 in the sense that direct user interaction with the Common Lisp or MIT-Scheme REPL isn't currently supported. Some hammock time is required along with some refactoring. Both clients would benefit.

A starting point may be the eval-str function in fnl/conjure/client/common-lisp/swank.fnl. The callback function passed to the send function call would need to be expanded to deal with user interaction and sending what the user types to the REPL. https://github.com/Olical/conjure/blob/bc8907e4ca572720a9f785660781450f8e79ef05/fnl/conjure/client/common-lisp/swank.fnl#L257 https://github.com/Olical/conjure/blob/bc8907e4ca572720a9f785660781450f8e79ef05/fnl/conjure/client/common-lisp/swank.fnl#L266

Sadly, the Common Lisp client needs someone to work on it. For some history, see #345, #348, #400, and #557.

russtoku avatar Nov 10 '24 02:11 russtoku

Well said and thanks for linking all of these related issues together! That's helpful! A rework of how stdio clients operate so we can do more interesting things like this is high up my priority queue.

Olical avatar Nov 13 '24 22:11 Olical