Function: cider-trace
cider-trace is an autoloaded, interactive and byte-compiled function
defined in cider-tracing.el.
Signature
(cider-trace)
Documentation
Open a buffer that streams trace events for traced functions.
Trace functions with cider-toggle-trace-var or cider-toggle-trace-ns
and call them; their calls and return values stream here instead of
cluttering the REPL. Killing the buffer stops the streaming.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-tracing.el
;;;###autoload
(defun cider-trace ()
"Open a buffer that streams trace events for traced functions.
Trace functions with `cider-toggle-trace-var' or `cider-toggle-trace-ns'
and call them; their calls and return values stream here instead of
cluttering the REPL. Killing the buffer stops the streaming."
(interactive)
(let ((connection (cider-current-repl nil 'ensure))
(buffer (get-buffer-create cider-trace-buffer)))
(with-current-buffer buffer
(unless (eq major-mode 'cider-trace-mode)
(cider-trace-mode))
(setq cider-trace--repl connection)
(unless cider-trace--subscription
(cider-nrepl-send-request
'("op" "cider/trace-subscribe")
(lambda (msg) (cider-trace--handle buffer msg))
connection)))
(pop-to-buffer buffer)))