Enable webview debugging in Qt5 scripts

This commit is contained in:
Damien Elmes 2023-11-13 15:20:50 +10:00
parent 39a60bc3a4
commit 0b164719a0
2 changed files with 6 additions and 3 deletions

View File

@ -4,7 +4,9 @@ set -e
export PYTHONWARNINGS=default
export PYTHONPYCACHEPREFIX=out/pycache
export ANKIDEV=1
export ANKIDEV=${ANKIDEV-1}
export QTWEBENGINE_REMOTE_DEBUGGING=${QTWEBENGINE_REMOTE_DEBUGGING-8080}
export QTWEBENGINE_CHROMIUM_FLAGS=${QTWEBENGINE_CHROMIUM_FLAGS---remote-allow-origins=http://localhost:$QTWEBENGINE_REMOTE_DEBUGGING}
./ninja pylib qt pyenv-qt5.14
./out/pyenv-qt5.14/bin/python tools/run.py $*

View File

@ -4,7 +4,8 @@ set -e
export PYTHONWARNINGS=default
export PYTHONPYCACHEPREFIX=out/pycache
export ANKIDEV=1
export ANKIDEV=${ANKIDEV-1}
export QTWEBENGINE_REMOTE_DEBUGGING=${QTWEBENGINE_REMOTE_DEBUGGING-8080}
export QTWEBENGINE_CHROMIUM_FLAGS=${QTWEBENGINE_CHROMIUM_FLAGS---remote-allow-origins=http://localhost:$QTWEBENGINE_REMOTE_DEBUGGING}
./ninja pylib qt pyenv-qt5.15
./out/pyenv-qt5.15/bin/python tools/run.py $*