Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Debugger for zsh (at least 4.3.6-dev-2)
Shell Python Perl Ruby
Failed to load latest commit information.
command --highlight changed from taking no parameters to --highlight=dark|lig…
data Sync with bashdb
doc Perhaps a better clean target
lib --highlight changed from taking no parameters to --highlight=dark|lig…
test --highlight changed from taking no parameters to --highlight=dark|lig…
.gitignore Fix bug deleting breakpoints.
.travis.yml Try again for travis
AUTHORS Forgot to install display and undisplay
ChangeLog I hate conflicted merges.
Makefile.am *opts.tests: make sure we use --no-highlight
NEWS processor.sh: Add last command to history unless it was empty or ther…
README.md Remove coderwall endorses count
THANKS Convert options processing to getopts_long by Stéphane Chazelas. Than…
acinclude.m4 More zsh and ksh compatible.
autogen.sh Fix up autogen.sh - 2nd take
configure.ac Command completion for eval. Next version will be 0.91
dbg-main.sh Go over history and history saving. Use more of the subcommand-automated
dbg-opts.sh --highlight changed from taking no parameters to --highlight=dark|lig…
dbg-pre.sh processor.sh: Add last command to history unless it was empty or ther…
dbg-trace.sh.in zshdb.in: we need --interactive for any kind of history to work
getopts_long.sh Add --highlight and --no-highlight options. Update getopts_long.sh
make-check-filter.rb *opts.tests: make sure we use --no-highlight
testing.sh Use ZSH subshell in journaling and the prompt display.
zshdb.in Go over history and history saving. Use more of the subcommand-automated

README.md

Build Status

This is a port of my bash debugger bashdb.

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

To get the code, install git and run in a zsh shell:

    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.

    _Dbg_debugger
    # 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

Something went wrong with that request. Please try again.