desed

desed is a terminal-based debugger for sed scripts that helps you understand and fix complex sed programs. It provides an interactive environment to step through sed execution, inspect variables, and test substitutions.

Features

  • Step through sed scripts forward and backward
  • Preview variable values in sed patterns
  • Preview the effects of substitute commands before execution
  • Set breakpoints to pause execution at specific points
  • Hot reload code while debugging
  • Interactive TUI with Vim-like controls
desed interactive debugger showing variable inspection
desed interactive debugger showing variable inspection

Basic usage

# Debug a sed script interactively.
desed script.sed

# Debug sed commands directly.
desed 's/pattern/replacement/'