Function: tramp-backtrace
tramp-backtrace is a byte-compiled function defined in
tramp-message.el.gz.
Signature
(tramp-backtrace &optional VEC-OR-PROC FORCE)
Documentation
Dump a backtrace into the debug buffer.
If VEC-OR-PROC is nil, the buffer *debug tramp* is used. FORCE
forces the backtrace even if tramp-verbose is less than 10.
This function is meant for debugging purposes.
Source Code
;; Defined in /usr/src/emacs/lisp/net/tramp-message.el.gz
(defsubst tramp-backtrace (&optional vec-or-proc force)
"Dump a backtrace into the debug buffer.
If VEC-OR-PROC is nil, the buffer *debug tramp* is used. FORCE
forces the backtrace even if `tramp-verbose' is less than 10.
This function is meant for debugging purposes."
(declare (tramp-suppress-trace t))
(let ((tramp-verbose (if force 10 tramp-verbose)))
(when (>= tramp-verbose 10)
(tramp-message
;; In batch-mode, we want to see it on stderr.
vec-or-proc (if (and force noninteractive) 1 10)
"\n%s" (with-output-to-string (backtrace))))))