pyte
pyte copied to clipboard
Reverse-time debugger
Debugging terminal emulators in notoriously hard. It boils down to carefully analyzing the escape sequences produced by the app under investigation and ensuring Screen state is consistent with what is expected.
Right now pyte has two debugging tools:
pyte.DebugStreamwhich emits JSON messages for each dispatched event; andexamples/webterm.py
I think some kind of a reverse-time debugger could be a very useful addition to that. It could augment the web UI we currently have with a time slider, which, when dragged, would play back (or forward) the recorded events.