Install zshdb by entering the following commands in the terminal:
sudo apt update sudo apt install zshdb
Description:
debugger for Z-Shell scripts
A zsh script to which arranges for another zsh script to be debugged. zshdb is a port of bashdb, a similar debugger for bash scripts, to zsh. The command syntax generally follows that of the trepanning debuggers and, more generally, GNU debugger gdb.
Homepage: https://github.com/rocky/zshdb/
Version: 0.92-3
Section: universe/devel