Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pi-trace

Interactive execution explorer for pi. Trace Python code and step forward and backward through source, call stack, and locals in a full-screen TUI — built for understanding code by watching what it actually does.

Independent of learn-pi. Install either package alone or both.

Status

Alpha — trace engine + TUI (Phases 1–2) shipped. Run /trace [file.py] [entry_fn] in interactive pi to step through a recorded Python execution. See docs/design.md.

Install (once published)

pi install npm:@osguild/pi-trace

Local development:

git clone git@github.com:osguild/pi-trace.git
pi -e ~/gitrepos/pi-trace

Command

/trace [file.py] [entry_function]

With no arguments, traces main.py in pi's current working directory.

Keys: ←/→ or h/l step back/forward · n/p next/prev · s step into · o step out · c jump to end · 0 start · r re-run · ? help · q quit

Requirements

  • pi in interactive TUI mode
  • Python 3 on PATH (v1 is Python-only)

Relationship to learn-pi

learn-pi owns the learning loop (tracks, exercises, reflection). pi-trace owns execution introspection. No runtime dependency between them.

Optional workflow when both are installed:

cd ~/gitrepos/my-exercise
/trace src/echo.py echo

License

MIT

About

Interactive execution explorer for pi — trace Python and step through code in a TUI

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages