Is it possible to debug bash scripts line-by-line?

bash, debugging, line-by-line

Solution

See `bashdb`.

If it's installed on your system, see `man bashdb`.

If it's not installed, see http://bashdb.sourceforge.net

Problem

I'll love something like Microsoft Visual Studio's line-by-line debugging in bash, with current variables values and so. Is there any tool or way to do it? `set -x` and `set -v` are nice but not perfect.

Original source

Related problems