mix phoenix_replay.show (PhoenixReplay v0.6.2)

Copy Markdown View Source

Prints a recording's events, or the view at one of them.

mix phoenix_replay.show RECORDING_ID [--at INDEX] [--limit ITEMS]

Without --at, it prints PhoenixReplay.Trace.events/1: every event with its index, label, error flag, the interaction it belongs to and its data. With --at, PhoenixReplay.Trace.state/2: the assigns, components and client state at that event, and what it changed. The index is the player's, as in /replay/RECORDING_ID?at=INDEX.

Everything is printed by default. --limit sets IO.inspect/2's :limit, one budget of items for the whole output, for a first look at a long recording. It starts your application and reads storage, so it shows saved recordings.