Raxol.Debug.DebuggerApp (Raxol v2.6.0)

View Source

Interactive debugger UI for time-travel debugging -- "React DevTools for the terminal."

A TEA app wrapping the TimeTravel GenServer. Displays a timeline of snapshots, diffs between states, and a collapsible model inspector.

Layout

+===================================================================+
| RAXOL DEBUGGER          Recording   Cursor: 42/156   +12.3s      |
+===================================================================+
| TIMELINE            | DIFF (Snapshot #42)                         |
| > #42 :tick (2)     |   count  41 -> 42                          |
|   #41 :tick (2)     | + items.new "hello"                        |
|   #40 :key (1)      | - old_field "removed"                      |
|   ...               |---------------------------------------------|
|                     | MODEL INSPECTOR (#42.model_after)           |
|                     |   count: 42                                 |
|                     | v items: {3 keys}                           |
|                     |     name: "todo"                            |
+===================================================================+
| [h/l] step  [j/k] scroll  [Tab] panel  [Space] pause  [q] quit  |
+===================================================================+

Launch with mix raxol.debugger or Raxol.start_link(DebuggerApp, []).

Summary

Functions

subscribe_interval(interval, msg)

subscribe_to_events(events)