dioxus
dioxus copied to clipboard
Dioxus-desktop: add a method to enable the webview remote-debugging (for easier playwright compatibility)
Feature Request
I manage to use playwright with dioxus-desktop by using the environment variable WEBVIEW2_ADDITIONAL_BROWSER_ARGUMENTS="--remote-debugging-port=<port>", however it would be easier and safer to use if it could be enabled in the rust code.
Implement Suggestion
It it possible to use this wry method (see https://github.com/tauri-apps/wry/issues/786#issuecomment-1337112639).
How do you see the best way to expose this method in dioxus-desktop? A parameter in the desktop config? Generic like the wry interface to pass additional argument or more specific like with_remote_debugger(port)? Also we have to take into account that the wry method is only available on windows.