In bash
I do set -x
and set +x
enable/disable the debug mode.
I'm aware of how to debug fish script?, but I would like to toggle debug mode in a more precise way, e.g. inside a function.
Question
What is the equivalent of set -x
/set -x
in Fish shell?