Command groups
Core debugging commands
These commands are the primary tools for debugging transactions:- debug - Debug failed transactions with detailed error traces
- trace - Interactive trace navigation and debugging
Testing and validation commands
Tools for testing contract changes and comparing execution:- compare - Compare local WASM vs on-chain execution side-by-side
Session and cache management
Manage debugging sessions and cached data:- session - Save, resume, and manage debugging sessions
- cache - Manage transaction and simulation cache
Development tools
Utilities for development environment setup:Utility commands
Additional tools for advanced workflows:- profile - Export trace as pprof profile for gas analysis
- export - Export data from the current session
- audit - Generate signed audit logs (Node.js)
- upgrade - Simulate contract upgrades
Global flags
These flags are available on all commands:Override the ledger header timestamp (Unix epoch)
Run range simulation across a time window (seconds)
Enable CPU/Memory profiling and generate a flamegraph
Flamegraph export format:
html (interactive) or svg (raw)Getting started
The most common workflow is:- Debug a transaction to understand what went wrong
- Use
erst traceto navigate the execution interactively - Compare local changes with
erst comparebefore deploying - Save sessions for later analysis with
erst session save