Function: cider-toggle-trace-ns
cider-toggle-trace-ns is an autoloaded, interactive and byte-compiled
function defined in cider-tracing.el.
Signature
(cider-toggle-trace-ns QUERY)
Documentation
Toggle ns tracing.
Defaults to the current ns. With prefix arg QUERY, prompts for a ns.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260414.1619/cider-tracing.el
;;;###autoload
(defun cider-toggle-trace-ns (query)
"Toggle ns tracing.
Defaults to the current ns. With prefix arg QUERY, prompts for a ns."
(interactive "P")
(cider-map-repls '(:clj-strict "toggle-trace-ns")
(lambda (conn)
(with-current-buffer conn
(let ((ns (if query
(completing-read "Toggle trace for ns: "
(cider-sync-request:ns-list))
(cider-current-ns))))
(let* ((trace-response (cider-sync-request:toggle-trace-ns ns))
(ns-status (nrepl-dict-get trace-response "ns-status")))
(pcase ns-status
("not-found" (error "Namespace %s not found" (cider-propertize ns 'ns)))
(_ (message "Namespace %s %s" (cider-propertize ns 'ns) ns-status)))))))))