$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.
Links
Examples
- Print
$functrace
for nested function invocation - Output:
1 2 3 4 5
# in a file named "test.zsh" inner() { echo ${functrace[*]}; } outer() { inner; } outer
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!