Function: dape--launch-or-attach-arguments
dape--launch-or-attach-arguments is a natively compiled function
defined in dape.el.
Signature
(dape--launch-or-attach-arguments CONN)
Documentation
Return plist of launch/attach arguments for CONN.
Source Code
;; Defined in /nix/store/1fiaif8pifqj2jh65rbg3fkhg3i56q42-emacs-packages-deps/share/emacs/site-lisp/elpa/dape-0.27.1/dape.el
(defun dape--launch-or-attach-arguments (conn)
"Return plist of launch/attach arguments for CONN."
;; Transform config to jsonrpc serializable format
;; Remove all non `keywordp' keys and transform null to
;; :json-false
(cl-labels
((transform-value (value)
(pcase value
('nil :json-false)
;; Need a way to create json null values (see #72)
(:null nil)
((pred vectorp)
(cl-map 'vector #'transform-value value))
((pred listp)
(create-body value))
(_ value)))
(create-body (config)
(cl-loop for (key value) on config by 'cddr
when (keywordp key)
append (list key (transform-value value)))))
(create-body (dape--config conn))))