MCPcopy Index your code
hub / github.com/dantleech/debug-tui

github.com/dantleech/debug-tui @0.3.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 0.3.1 ↗ · + Follow
381 symbols 761 edges 26 files 110 documented · 29%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Debug-TUI

Interactive Xdebug step-debugging client for your terminal.

Demo

  • Travel forwards: step over, into and out.
  • Travel backwards: it's not quite time travel - but you can revisit and inspect previous steps in history mode.
  • Jump the stack: jump up and down the stack.
  • Vim-like motions: Typing 100n will repeat "step into" 100 times.
  • Inline values: Show variable values inline with the source code.
  • Process control: Launch, monitor and restart the process being debugged.

Installation

CLI options

  • --log: Debug log to file.
  • --listen: Listen on an alternative address (defaults to 0.0.0.0:9003).

In addition you can optionally specify a process to debug:

$ debug-tui -- php path/to/script.php

Key bindings

Prefix with number to repeat:

  • r run
  • n next / step into
  • N step over
  • p previous (switches to history mode if in current mode)
  • o step out
  • R restart process if one was provided
  • j down
  • J down 10
  • k up
  • K up 10
  • h left
  • H left 10
  • l right
  • L right 10
  • + increase context depth
  • - decrease context depth
  • tab switch pane
  • enter toggle pane focus (full screen)
  • t rotate the theme
  • ? Show help
  • f Filter (context pane) - use dot notation to filter on multiple levels.

Setting Breakpoints

debug-tui has no mechanism for setting a breakpoint but you can use the function xdebug_break() in your code:

<?php

function my_function() {
    xdebug_break(); // break after this line
}

Extension points exported contracts — how you extend this code

View (Interface)
(no doc) [9 implementers]
src/view/mod.rs

Core symbols most depended-on inside this repo

to_color
called by 53
src/theme.rs
push
called by 31
src/app.rs
get
called by 25
src/dbgp/client.rs
len
called by 20
src/app.rs
theme
called by 20
src/app.rs
as_str
called by 17
src/dbgp/client.rs
write
called by 12
src/channel.rs
unload
called by 9
src/channel.rs

Shape

Method 255
Function 60
Class 49
Enum 16
Interface 1

Languages

Rust66%
PHP34%

Modules by API surface

php/large.php122 symbols
src/dbgp/client.rs60 symbols
src/app.rs42 symbols
src/view/session.rs23 symbols
src/channel.rs22 symbols
src/analyzer.rs16 symbols
src/notification.rs14 symbols
src/view/eval.rs13 symbols
src/view/source.rs8 symbols
src/theme.rs7 symbols
php/test.php7 symbols
src/config.rs6 symbols

For agents

$ claude mcp add debug-tui \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact