Updated How to debug qt webengine (markdown)

Matthieu Gallien 2023-12-01 16:16:56 +01:00
parent 1fe5d308d4
commit d6761616a0

@ -1,4 +1,10 @@
The desktop client embedded Qt WebEngine module can be remotely access to debug it and use the [chromium devtools](https://doc.qt.io/qt-5.15/qtwebengine-features.html#chromium-devtools).
If you run Linux, using our official [Appimage](https://github.com/nextcloud-releases/desktop/releases/latest) package, you can use the following command line:
`QT_QPA_PLATFORM=xcb QTWEBENGINE_REMOTE_DEBUGGING=1081 QTWEBENGINE_CHROMIUM_FLAGS="--webEngineArgs --remote-debugging-port=8081" ./Nextcloud-3.10.1-x86_64.AppImage`
```
QTWEBENGINE_REMOTE_DEBUGGING=8081 QTWEBENGINE_CHROMIUM_FLAGS="--webEngineArgs --remote-debugging-port=8081" ./Nextcloud-3.10.1-x86_64.AppImage
```
After that is done and once the client has created the webengine powered web view, you can connect via a chromium based browser by doing this:
```
chromium http://localhost:8081
```