$funcsourcetrace
–
Relative Line Numbers and File Names of the Execution Stack
$funcsourcetrace is an array and contains the relative line numbers and the file names of the currently
executing functions, source files and eval command (if EVAL_LINENO is set).
$funcfiletrace is more useful, as it contains absolute line numbers instead.
Links
BashSupport Pro is a Zsh IDE with support for $funcsourcetrace – try it now!