Function: claude-code-ide-debug
claude-code-ide-debug is a macro defined in claude-code-ide-debug.el.
Signature
(claude-code-ide-debug FORMAT-STRING &rest ARGS)
Documentation
Log debug message with FORMAT-STRING and ARGS if debug is enabled.
This is a macro to avoid evaluating ARGS when debugging is disabled.
Source Code
;; Defined in /nix/store/yjvbhwl7p6zrbw9xlnni7y4hra8sa3pl-emacs-packages-deps/share/emacs/site-lisp/claude-code-ide-debug.el
(defmacro claude-code-ide-debug (format-string &rest args)
"Log debug message with FORMAT-STRING and ARGS if debug is enabled.
This is a macro to avoid evaluating ARGS when debugging is disabled."
`(when claude-code-ide-debug
(let ((message (format ,format-string ,@args))
(timestamp (format-time-string "%Y-%m-%d %H:%M:%S"))
(context (claude-code-ide--get-session-context)))
(with-current-buffer (get-buffer-create claude-code-ide-debug-buffer)
(goto-char (point-max))
(insert (format "%s %s%s\n" timestamp context message))))))