# 使用 Homebrew, MacPorts, pacman 安装 zshdb

查看 zshdb 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:zshdb
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install zshdb
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install zshdb
```

  证据: MacPorts ports tree: devel/zshdb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- pacman (92%):

```sh
sudo pacman -S zshdb
```

  证据: Arch Linux sync databases: zshdb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:zshdb
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/zshdb>
- **版本:** 1.1.4
- **来源摘要:** Debugger for zsh
- **主页:** <https://github.com/Trepan-Debuggers/zshdb>
- **仓库:** <https://github.com/Trepan-Debuggers/zshdb>
- **上游文档:** <https://github.com/Trepan-Debuggers/zshdb#readme>
- **许可证:** GPL-2.0-or-later AND GPL-3.0-or-later AND HPND-sell-variant
- **源码归档:** <https://downloads.sourceforge.net/project/bashdb/zshdb/1.1.4/zshdb-1.1.4.tar.gz>
- **最后更新:** 2026-07-05T00:14:30+09:00
- **已生成:** 2026-07-10T07:20:53+00:00

## 可执行文件

- zshdb (cli)
- zshdb (别名)

## 依赖

- zsh

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-10
- 管理器版本: 1.1.4
- 管理器更新时间: 2026-07-05
- 本地数据: OK
- 上游仓库: https://github.com/Trepan-Debuggers/zshdb
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

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.

### 时间线

- 2008-08-08: The Trepan-Debuggers/zshdb GitHub repository is created.
- 2010s: zshdb is documented through README material and Read the Docs as part of the Trepan debugger ecosystem.
- 2020s: zshdb remains packaged by Homebrew, MacPorts, and Arch-derived package metadata for users who need Zsh script debugging.

### Related projects

- Related projects include Zsh, bashdb, Trepan debuggers, gdb, kshdb, shell tracing with `set -x`, and Zsh test/debugging workflows.

### 来源

- <https://api.github.com/repos/Trepan-Debuggers/zshdb>
- <https://github.com/Trepan-Debuggers/zshdb>
- <https://raw.githubusercontent.com/Trepan-Debuggers/zshdb/master/README.md>
- <https://zshdb.readthedocs.io/en/latest/>


## 安全说明

没有找到 zshdb 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **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:** head, stable

## 其他软件包管理器记录

- pacman - zshdb - 1.1.4-2: normalized package name match | Arch Linux sync databases: zshdb from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A debugger for zsh scripts | https://github.com/rocky/zshdb/
- MacPorts - zshdb: normalized package name match | MacPorts ports tree: devel/zshdb/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched curated package taxonomy and local package facts.
- [zsh](https://www.automicvault.com/zh-hans/pkg/brew/zsh/) - Runtime dependency declared by Homebrew.
- [fizsh](https://www.automicvault.com/zh-hans/pkg/brew/fizsh/) - Local package facts share a topical domain. Shared terms: zsh.
- [delve](https://www.automicvault.com/zh-hans/pkg/brew/delve/) - Local package facts share a topical domain. Shared terms: debugger.
- [geometry](https://www.automicvault.com/zh-hans/pkg/brew/geometry/) - Local package facts share a topical domain. Shared terms: zsh.

## Combined YAML source

View the package source record on GitHub. [combined/zshdb.yml](https://github.com/automic-vault/db/blob/main/combined/zshdb.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated package history
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
