From: Ralph Ronnquist Date: Tue, 18 Apr 2023 03:47:40 +0000 (+1000) Subject: added debugging support; commented out X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=5623d41029f2f5e3a980408942ee4a87fbcdd451;p=rrq%2Flsp-utils.git added debugging support; commented out --- diff --git a/lsp-dbus/lsp-dbus-events.lsp b/lsp-dbus/lsp-dbus-events.lsp index 5770604..634ab07 100644 --- a/lsp-dbus/lsp-dbus-events.lsp +++ b/lsp-dbus/lsp-dbus-events.lsp @@ -64,8 +64,12 @@ )) "main-loop: ")) +(define (human-msg MSG) + (human-bytes (unpack (dup "b" (length MSG)) MSG))) + ;; Send message, then keep reading messages until there is a reply (define (send-recv-message MSG) + ;;(die nil (list 'send-recv-message (human-msg MSG))) (net-send (:%socket SYSTEM-BUS) MSG) (let ((REPLY nil)) (while (nil? REPLY)