$functrace  –  Names and Line Numbers of Callers

$functrace contains the names and line numbers of the locations, where functions are called or where files are sourced.

Examples

Print $functrace for nested function invocation
1
2
3
4
5
# in a file named "test.zsh"
inner() { echo ${functrace[*]}; }
outer() { inner; }
  
outer
Output:
1
2
$ zsh test.zsh
outer:0 test.zsh:5
BashSupport Pro ist eine Zsh IDE mit Unterstützung für $functrace - probieren Sie es jetzt aus!
© 2020–2024 Joachim Ansorg
Impressum
Datenschutz
Rechtliches