Debug your shell scripts
debug helps you to debug your scripts.
Currently it only supports Bash.
It will run a given script with the -x option,
allowing to see what's happening.
You can customize the PS4 variable to change the way
instructions are printed.
Installation is done with basher:
basher install gitlab.com/shellm/debugYou can debug a script available on your path:
debug script ARGSYou can also debug a script with an absolute or relative path:
debug ./this_script ARGS
debug /path/to/this/scripts ARGSTo just test the script without running it, to check for syntax error:
debug -t script ARGSTo increase the verbosity level:
debug -v script ARGSFor a verbose dry-run:
debug -n script ARGS