跳转到内容
Tauri

CrabNebula DevTools

此内容尚不支持你的语言。

CrabNebula provides a free DevTools application for Tauri as part of its partnership with the Tauri project. This application allows you to instrument your Tauri app by capturing its embedded assets, Tauri configuration file, logs and spans and providing a web frontend to seamlessly visualize data in real time.

With the CrabNebula DevTools you can inspect your app’s log events (including logs from dependencies), track down the performance of your command calls and overall Tauri API usage, with a special interface for Tauri events and commands, including payload, responses and inner logs and execution spans.

To enable the CrabNebula DevTools, install the devtools crate:

cargo add tauri-plugin-devtools@2.0.0

And initialize the plugin as soon as possible in your main function:

fn main() {
#[cfg(debug_assertions)]
let devtools = tauri_plugin_devtools::init(); // initialize the plugin as early as possible
let mut builder = tauri::Builder::default();
#[cfg(debug_assertions)]
builder = builder.plugin(devtools); // then register it with Tauri
builder.run(tauri::generate_context!())
.expect("error while running tauri application");
}

For more information, see the CrabNebula DevTools documentation.


© 2024 Tauri Contributors. CC-BY / MIT