Function: tramp-backtrace

tramp-backtrace is a byte-compiled function defined in tramp.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.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."
  (let ((tramp-verbose (if force 10 tramp-verbose)))
    (when (>= tramp-verbose 10)
      (if vec-or-proc
	  (tramp-message
	   vec-or-proc 10 "\n%s" (with-output-to-string (backtrace)))
	(with-output-to-temp-buffer "*debug tramp*" (backtrace))))))