Usage
Description
Thetrace command provides an interactive terminal UI for exploring Soroban transaction execution traces. It allows you to:
- Step forward and backward through execution
- Jump to specific steps
- Reconstruct state at any point
- View memory and host state changes
- Search for specific patterns
Trace files are typically generated by the
erst debug command or can be exported from debugging sessions.Examples
Arguments
Path to the trace file to load (JSON format)
Flags
Trace file to load (alternative to positional argument)Alias:
-fColor theme for the trace viewerOptions:
default- Standard color schemedeuteranopia- Red-green color blindnessprotanopia- Red color blindnesstritanopia- Blue-yellow color blindnesshigh-contrast- High contrast mode
Interactive controls
Once the trace viewer is running, use these keyboard shortcuts:Navigation
↑/↓- Navigate up/down through trace entries←/→- Collapse/expand nodesPageUp/PageDown- Scroll one pageHome/End- Jump to start/endg- Go to specific step number
Search
/- Open search promptn- Next search matchN- Previous search matchEsc- Clear search
Display
?orh- Show help overlayw- Toggle word wrapc- Cycle color schemes
Control
qorCtrl+C- Quit viewerr- Refresh display
Output format
The trace viewer displays:- Contract calls: Function names and contract IDs with syntax highlighting
- State changes: Ledger entry modifications
- Events: Contract events and diagnostic events
- Budget usage: CPU instructions, memory bytes, and operation counts
- Errors: Detailed error messages and stack traces
Accessibility features
The trace viewer includes several accessibility features:- Color blindness support: Multiple color schemes optimized for different types of color vision deficiency
- High contrast mode: Enhanced visibility for low-vision users
- Screen reader hints: Semantic labels for navigation
- Keyboard-only operation: No mouse required