The function ensure-remote-debugging-connection
checks that object is a remote debugging connection (either IDE or client side) and that it is opened, and if so returns it. Otherwise it returns nil
.
The main purpose of ensure-remote-debugging-connection
is to check that the connection is still open. Debugging connections may close unexpectedly when the other side closes or the Lisp image quits or the machine is shut down, or (less likely) if something is wrong with the underlying connection between the machines.
LispWorks User Guide and Reference Manual - 20 Sep 2017