Function: eshell-debug-command

eshell-debug-command is a byte-compiled function defined in esh-cmd.el.gz.

Signature

(eshell-debug-command TAG SUBFORM)

Documentation

Output a debugging message to *eshell last cmd*.

Source Code

;; Defined in /usr/src/emacs/lisp/eshell/esh-cmd.el.gz
(defun eshell-debug-command (tag subform)
  "Output a debugging message to `*eshell last cmd*'."
  (let ((buf (get-buffer-create "*eshell last cmd*"))
	(text (eshell-stringify eshell-current-command)))
    (with-current-buffer buf
      (if (not tag)
	  (erase-buffer)
	(insert "\n\C-l\n" tag "\n\n" text
		(if subform
		    (concat "\n\n" (eshell-stringify subform)) ""))))))