Originally, debugging meant removing physical bugs that disrupted early computers.
In Bash, your terminal is essentially a REPL.
Bash doesn’t come with a built-in debugger like some other languages, but you can use built-in commands like set -x to trace what’s happening.
set -x
Bash doesn’t have a built-in testing framework, but you can write simple test functions.