ソースを参照

Use a better PS4 as recommeneded by Bash Hackers Wiki

it allows to see functions as well as lines, therefore making it possible to see the control flow
pull/1810/head
Ivan Pozdeev 5年前
コミット
9309050864
1個のファイルの変更2行の追加1行の削除
  1. +2
    -1
      libexec/pyenv

+ 2
- 1
libexec/pyenv ファイルの表示

@ -7,7 +7,8 @@ if [ "$1" = "--debug" ]; then
fi
if [ -n "$PYENV_DEBUG" ]; then
export PS4='+ [${BASH_SOURCE##*/}:${LINENO}] '
# https://wiki-dev.bash-hackers.org/scripting/debuggingtips#making_xtrace_more_useful
export PS4='+(${BASH_SOURCE}:${LINENO}): ${FUNCNAME[0]:+${FUNCNAME[0]}(): }'
set -x
fi

読み込み中…
キャンセル
保存