Skip to content

shellm-org/debug

Repository files navigation

Bash Debug

Debug your shell scripts

pipeline status gitter chat

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.

Demo

Installation

Installation is done with basher:

basher install gitlab.com/shellm/debug

Usage

You can debug a script available on your path:

debug script ARGS

You can also debug a script with an absolute or relative path:

debug ./this_script ARGS
debug /path/to/this/scripts ARGS

To just test the script without running it, to check for syntax error:

debug -t script ARGS

To increase the verbosity level:

debug -v script ARGS

For a verbose dry-run:

debug -n script ARGS

Releases

No releases published

Packages

No packages published