macOS
brew install zshdblocal Homebrew formula metadata
sudo port install zshdbMacPorts ports tree · devel/zshdb/Portfile · source: api.github.com
brew
Debugger for zsh. Version 1.1.4 via Homebrew; verified 2026-07-05.
install
brew install zshdblocal Homebrew formula metadata
sudo port install zshdbMacPorts ports tree · devel/zshdb/Portfile · source: api.github.com
sudo pacman -S zshdbArch Linux sync databases · zshdb · source: geo.mirror.pkgbuild.com
overview
Debugger for zsh
history
zshdb is a gdb-like debugger for Zsh scripts. It is part of the Trepan debugger family and brings stepping, breakpoints, stack inspection, and debugger-style command interaction to shell code that is otherwise usually debugged with `set -x` and print statements.
The public GitHub repository was created on 2008-08-08. The README and Read the Docs site describe zshdb as a debugger for Zsh, aligned with Rocky Bernstein's broader Trepan debugger work and sibling shell debuggers.
zshdb's premise is deliberately narrow: Zsh scripts deserve source-level debugging too. Rather than implementing a new shell, it wraps and instruments Zsh execution to provide debugger commands familiar from gdb-style workflows.
Adoption is specialized. Most shell users rely on tracing, but maintainers of larger shell scripts, shell libraries, or Zsh-specific tooling can benefit from real stepping and breakpoints. That niche is why zshdb appears in several package managers even without mainstream visibility.
The package is also part of a debugger lineage: users who discover bashdb, pydb, or Trepan-style tools can recognize zshdb as the Zsh-specific member of that family.
Developers run `zshdb` against a Zsh script to step through execution, inspect call frames and variables, set breakpoints, and diagnose control-flow problems. It is most useful when `set -x` output becomes too noisy or when a script uses Zsh-specific behavior that a POSIX-sh debugger would not understand.
Because it is a command-line debugger, packaging matters: installing it from Homebrew, MacPorts, or Arch puts a repeatable debugger binary alongside the shell it targets.
zshdb matters because it packages observability for shell scripts, a corner of developer tooling that is often under-served. Shells are everywhere, but source-level shell debuggers remain niche enough that package-manager discovery is important.
It is also a useful sibling entry for package databases: bashdb, zshdb, and Trepan-related debuggers show a family of small, language-specific debugging tools rather than one monolithic debugger package.
security posture
No matching local secret-handling manifest was found for zshdb. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
zshdb | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/Trepan-Debuggers/zshdb
install metadata
| Package key | brew:zshdb |
|---|---|
| Version | 1.1.4 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/zshdb |
| Homepage | https://github.com/Trepan-Debuggers/zshdb |
| Repository | https://github.com/Trepan-Debuggers/zshdb |
| Upstream docs | https://github.com/Trepan-Debuggers/zshdb#readme |
| License | GPL-2.0-or-later AND GPL-3.0-or-later AND HPND-sell-variant |
| Source archive | https://downloads.sourceforge.net/project/bashdb/zshdb/1.1.4/zshdb-1.1.4.tar.gz |
| Last updated | 2026-07-05T00:14:30+09:00 |
| Pulse | updated |
| Dependencies | zsh |
| Bottle | available (on all) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | zshdb |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
zshdb 1.1.4-2
A debugger for zsh scripts
https://github.com/rocky/zshdb/
sudo pacman -S zshdbzshdb
sudo port install zshdbsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.