Devtools Desktop App Plugin
Connect with the CrabNebula DevTools Desktop application and embed the devtools view in your application.
This plugin extends the DevTools for Tauri plugin by easily interfacing with the DevTools Desktop app, allowing you to directly open the DevTools user interface either as a embedded view or in a standalone window.
This is the plugin for the upcoming Tauri v3 (currently alpha). For Tauri v2, use the 2.x releases.
Getting Started
Ensure you have Tauri set up correctly. Then install the Rust instrumentation from crates.io:
Then add the following snippet to your tauri initialization code:
And then run your app as usual, if everything is set up correctly you will be able to right-click on the window and select the "Open DevTools" menu or use the "Ctrl + Shift + M" (Linux and Windows) or "Cmd + Shift + M" (macOS) shortcuts.
Webview runtimes
The plugin works with any Tauri v3 runtime (tauri-runtime-wry, tauri-runtime-cef).
Runtimes serve custom protocols on different URLs ({scheme}://localhost on wry, http://{scheme}.localhost on CEF and on Windows);
the plugin asks the runtime for the right one, so nothing needs to be configured. A runtime that serves custom protocols
somewhere else than it reports can be handled through Builder::custom_scheme_url:
new
.custom_scheme_url
.build
Context Menu
This plugin changes the default webview context menu to include its own entry for opening the devtools webview. By default the Inspector item is only enabled on debug builds. To also enable this for release applications, enable the context-menu-inspector feature flag, which also enables the Web inspector (tauri/devtools feature flag) for your application:
= { = "3.0.0-alpha.0", = ["context-menu-inspector"] }