⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dbg-test1.sub

📁 bash debugger. You can use this tool to debug bash shell script
💻 SUB
字号:
# This file is intended to be sourced from one of the bashdb test programssourced_fn() {    name="fn2"    echo "SOURCED FN LINENO $LINENO"    # Print a stack trace    declare -i n    n=${#FUNCNAME[@]}    for (( i=0 ; (( i < $n )) ; i++ )) ; do         local -i j=i+1	[ $j -eq $n ] && j=i  # main()'s file is the same as the first caller	local filename=${BASH_SOURCE[$j]##*/}	echo "FUNCNAME[$i]: ${FUNCNAME[$i]} called from $filename" \	     "at line ${BASH_LINENO[$i]}"    done}echo "SOURCED LINENO $LINENO"filename=${BASH_SOURCE[0]##*/}echo "SOURCED BASH_SOURCE[0]" $filenamesourced_fn#;;; Local Variables: ***#;;; mode:shell-script ***#;;; eval: (sh-set-shell "bash") ***#;;; End: ***

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -