Create entity database inspection devtool #134
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
In order to debug entity persistence and inspect saved game state,
as a Marathon developer,
I need a CLI devtool that can read entity databases and display entity data in human-readable format.
This tool will help with debugging persistence issues, inspecting world state, and validating migrations.
Acceptance Criteria
Features
Commands
inspect list [--type <entity_type>]- List all entities with basic metadatainspect entity <id|network_id>- Show detailed entity data (deserialize and pretty-print components)inspect stats- Database statistics (entity counts, size, schema version)inspect verify- Verify all entities can be deserialized successfullyinspect export <entity_id> [--json|--ron]- Export entity to structured formatDisplay Format
Technical Notes
clapfor argument parsingcrates/devtools/src/bin/entity-inspector.rs(or similar)Additional Context
Since entity component data is stored as rkyv binary blobs for performance, we lose SQL queryability. This devtool fills that gap by providing human-readable inspection for debugging and development purposes.
Low priority - can be implemented after v0 core persistence is working.