mirror of
https://github.com/zed-industries/zed.git
synced 2026-11-19 06:59:22 +01:00
3d42ca7c09
This PR adds a debug state command to the CLI and a `cx.debug_state` API to GPUI's `App`, so users can better understand where things went wrong in their GPUI apps when they run into a bug. `zed --debug-state` prints the running instance's snapshot as JSON. Release Notes: - Added a `zed --debug-state` CLI flag that prints the running app's window, display, and platform state as JSON for debugging - [GPUI] Added `cx.debug_state` API to output the current GPUI state
Cli
Testing
You can test your changes to the cli crate by first building the main zed binary:
cargo build -p zed
And then building and running the cli crate with the following parameters:
cargo run -p cli -- --zed ./target/debug/zed.exe