$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 是一款支持 functrace** 的 **Zsh 集成开发环境 - 立即试用
© 2020–2024 Joachim Ansorg
声明
隐私政策
许可条款