refreshDebugContent re-renders the debug ring into the debug viewport. Two modes: - debugList: one line per event; the currently selected event (if any) gets a background highlight. Auto-scrolls to the bottom when not focused, follows the selection when focused. - debugDetail: the selected event's f
()
| 584 | // |
| 585 | // Cheap to call — Snapshot copies ~500 events at worst. |
| 586 | func (m *harness) refreshDebugContent() { |
| 587 | if m.debugMode == debugDetail { |
| 588 | m.renderDebugDetail() |
| 589 | return |
| 590 | } |
| 591 | m.renderDebugList() |
| 592 | } |
| 593 | |
| 594 | func (m *harness) renderDebugList() { |
| 595 | events := debug.Snapshot() |
no test coverage detected