如何在 Fish shell 中切换调试模式?
How to toggle debug mode in Fish shell?
在 bash
中,我执行 set -x
和 set +x
enable/disable 调试模式。
我知道 ,但我想以更精确的方式切换调试模式,例如 在函数中。
问题
Fish shell 中 set -x
/set -x
的等价物是什么?
提出这个问题后,fish 3.1增加了fish_trace
变量
因此,set -x
(在 fish 中创建导出变量)不是 set fish_trace 1
,而是触发调试显示。
fish 3.1 之前,没有等效的功能。
在 bash
中,我执行 set -x
和 set +x
enable/disable 调试模式。
我知道
问题
Fish shell 中 set -x
/set -x
的等价物是什么?
提出这个问题后,fish 3.1增加了fish_trace
变量
因此,set -x
(在 fish 中创建导出变量)不是 set fish_trace 1
,而是触发调试显示。
fish 3.1 之前,没有等效的功能。