In bash, invoking
set -x at the beginning of a script causes the commands to be printed on stdout while the script is executing. What's the equivalent syntax for the fish shell?
However you could wrap
Alternatively, the function command has an
Or you can execute your fish script with fish -d 3