- Add dependency to Cargo.toml (TODO: publish to crates.io)
[dependencies]
bevy_diagnostics_explorer = { git = "...", branch = "main" }
- Add plugin to your app
use bevy_diagnostics_explorer::DiagnosticExplorerAgentPlugin;
...
.add_plugin(DiagnosticExplorerAgentPlugin)
- Disable default logging system
use bevy::log::LogPlugin;
...
.disable::<LogPlugin>()
- Enable
trace
feature for Bevy in Cargo.toml:
[dependencies]
bevy = { version = "...", features = ["trace"] }
- Run VSCode with Bevy Diagnostics Explorer extension installed