tuitor

tuitor

A terminal debugger for every language: it records every stop, so you can step back and compare runs.

CI crates.io License: GPL-3.0 Docs

tuitor stopped at a breakpoint: values inline in SOURCE, LOCALS with what changed, watches with their trend. Click to watch the demo.

▶ Watch the 30-second demo

tuitor is a Debug Adapter Protocol client. One terminal program debugs PHP, JavaScript, TypeScript, Go, C, C++, Rust, Zig and Dockerfile builds, using the same adapters as VS Code.

Install

cargo install tuitor --locked           # crates.io
cargo binstall tuitor                   # prebuilt binary
brew install DorianDevp/tuitor/tuitor   # Homebrew
yay -S tuitor-bin                       # Arch Linux (AUR); tuitor builds from source
nix run github:DorianDevp/tuitor        # Nix

Binaries for Linux and macOS are on GitHub Releases. From a clone: cargo install --path crates/tuitor.

Installing adapters

tuitor runs adapters; it does not bundle them. tuitor doctor shows what is missing and how to fix it.

language adapter install
PHP vscode-php-debug + Xdebug 3 tuitor install php, Xdebug from your distribution
JavaScript, TypeScript (Node.js, Chrome) js-debug tuitor install js-debug
Go Delve tuitor install delve
C, C++, Rust, Zig gdb 14+, lldb-dap or CodeLLDB distribution package, or tuitor install codelldb
Dockerfile BuildKit (docker buildx 0.38+) Docker

Other adapters can be added in adapters.toml. Details: Adapters.

Quick start

cd examples/go && ./run.sh        # or php, js, typescript, web, angular, c, rust
  1. f, type main.go:58, ctrl-b, esc: set a breakpoint.
  2. c: run to it. c again: changed values turn green with ▲ and the old value.
  3. s n o: step in, over, out. w: watch a variable.
  4. [ ]: step back and forth through recorded stops. g h: every variable at every stop.
  5. ?: every command. Q: quit.

On your own code:

tuitor                                    # this directory's project
tuitor "Listen for Xdebug"                # a launch configuration by name
tuitor exec ./target/debug/app -- --flag  # a native program, through gdb
tuitor listen --map /var/www/app=./api    # PHP in Docker, on port 9003
tuitor build api/Dockerfile               # a Dockerfile build

Guides: PHP · PHP in Docker · Node.js and TypeScript · Chrome · Go · C, C++, Rust, Zig · Dockerfile

Screenshots

   
HISTORY: every variable at every stop, a chart and TIMELINE COMPARE: two breakpoint sets' runs side by side
HISTORY: every variable at every stop COMPARE: two runs, value by value
FLOW: the files of a run in execution order, timed by an Xdebug trace PATHS: call trees through a line, from the language server
FLOW: the files a run went through PATHS: call trees through a line

Documentation

doriandevp.github.io/tuitor: features, keys, configuration, adapters, comparisons, FAQ and limitations.

Contributing

Bug reports, adapters and language servers are welcome. See CONTRIBUTING.md.

License

GNU General Public License v3