bashdb which you can do from source or get from a package manager. On MacOS you can
brew install bashdb.
Install Visual Studio Code and the Bash Debug plugin from the marketplace. See this blog article yet I didn't have to do any upgrades of build from source things worked pretty much out of the box after installing bashdb via Homebrew.
debug.sh script in this gist as the entrypoint to be able to step through code.