A collection of debugging functions in bash.
- dump: an alternative to echo when debugging.
- dd: dump and die.
- Copy-paste the function that you want to use into your script.
or
- Copy-paste the entire file
src/dumper.sh
or download it:
# bash-dumper
curl -L https://github.com/Chemaclass/bash-dumper/releases/download/0.1/dumper.sh \
-o src/dev/dumper.sh
- Import the file into your main script
declare ROOT_DIR="$(dirname "${BASH_SOURCE[0]}")"
source "$ROOT_DIR/src/dumper.sh"
- now you have access to all functions inside
dumper.sh
⚡️
Example: Chemaclass/bash-skeleton
Original idea developed in TypedDevs/bashunit#286