Sometimes you may find yourself in a situation where you need to actually debug a shell script you're currently writing. Especially in the initial phase of development, features like single-stepping feel quite handy.

I this article we are going to look at two situations where the bash debugger (bashdb) is a great tool for shell scripting. I will also show you one bashdb feature I find really surprising.

This post has moved to my new blog: [deardevices.com](https://deardevices.com/2017/12/10/the-bash-debugger-an-example/)! [![Dear Devices](https://steffen.ronalter.de/assets/deardevices.png)](https://deardevices.com/2017/12/10/the-bash-debugger-an-example/)