Looking for the latest version? Download remake-4.1+dbg1.1.tar.bz2 (1.3 MB)
Home / zshdb
Name Modified Size Downloads / Week Status
Parent folder
Totals: 10 Items   1.5 kB 2
0.9 2014-12-13 11 weekly downloads
0.08 2011-05-19 11 weekly downloads
0.07 2011-03-15 11 weekly downloads
0.06 2010-12-28 22 weekly downloads
0.05 2010-10-28 22 weekly downloads
0.04 2009-10-27 22 weekly downloads
0.03 2009-10-27 22 weekly downloads
0.02 2009-06-13 22 weekly downloads
0.01 2008-10-27 22 weekly downloads
README.md 2015-02-09 1.5 kB 22 weekly downloads

Build Status

zshdb is debugger for zsh scripts. It started as a port of my bash debugger bashdb so the commands used in both are similar.

The command syntax generally follows that of the trepanning debuggers and, more generally, GNU debugger gdb.

To install from git:

git-clone git://github.com/rocky/zshdb.git
cd zshdb
./autogen.sh  # Add configure options. See ./configure --help

If you've got a suitable zsh installed, then

make && make test

To try on a real program such as perhaps /etc/zsh/zshrc:

./zshdb /etc/zsh/zshrc # substitute .../zshrc with your favorite zsh script

To modify source code to call the debugger inside the program:

source path-to-zshdb/zshdb/dbg-trace.sh
# work, work, work.

# start debugging here

Above, the directory path-to_zshdb should be replaced with the directory that dbg-trace.sh is located in. This can also be from the source code directory zshdb or from the directory dbg-trace.sh gets installed directory. The "source" command needs to be done only once somewhere in the code prior to using _Dbg_debugger.

If you are happy and make test above worked, install via:

sudo make install

and uninstall with:

sudo make uninstall # ;-)

See INSTALL for generic configure installation instructions.

See the wiki for more information.

Rocky Bernstein rocky@gnu.org

Source: README.md, updated 2015-02-09