Usage
Description
Sessions store complete transaction data, simulation results, and analysis context, allowing you to:- Resume debugging work later
- Share debugging context with team members
- Build a history of investigated transactions
- Analyze patterns across multiple sessions
Sessions are stored in
~/.erst/sessions/ by default and include transaction envelopes, simulation results, ledger state, and metadata.Subcommands
- save - Save the current debugging session
- resume - Restore a saved session
- list - View all saved sessions
- delete - Remove a saved session
save
Save the current debug session state to disk for later resumption.Usage
Flags
Custom session IDIf not specified, an ID is auto-generated from the transaction hash.
Examples
resume
Restore a previously saved debug session by ID.Usage
Arguments
Session ID to resumeSupports:
- Exact ID match
- Partial ID prefix
- Transaction hash
- Fuzzy matching
Examples
Output
When resuming a session, displays:- Session ID and creation time
- Transaction hash and network
- Last access time
- Transaction envelope size
- Simulation results summary
- Event and log counts
list
List all saved debugging sessions, ordered by most recently accessed.Usage
Output
Displays a table with:- Session ID
- Network (testnet, mainnet, etc.)
- Last accessed timestamp
- Transaction hash
Example output
delete
Remove a saved debugging session by ID.Usage
Arguments
Session ID to deleteSupports the same flexible matching as
resume.Example
Session lifecycle
Sessions are automatically cleaned up based on:- TTL: Default 30 days (configurable)
- Max sessions: Default 50 (configurable)
- Cleanup strategy: Least Recently Used (LRU)
save, resume, and list operations.
Session data
Each session stores:- Transaction data: Envelope XDR and result meta XDR
- Simulation results: Events, logs, diagnostic events
- Ledger state: All ledger entries accessed during execution
- Metadata: Network, timestamp, schema version
- Request context: Original simulation request parameters