Skip to content

Commit db03142

Browse files
committed
Fix webengine remote debugging in Qt6
#2806 + Enable remote debugging with run.bat, like in run. It doesn't allow overriding - someone who better knows .bat scripts will need to handle that if they need it.
1 parent e071fb4 commit db03142

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

run

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ export PYTHONPYCACHEPREFIX=out/pycache
77
# define these as blank before calling the script if you want to disable them
88
export ANKIDEV=${ANKIDEV-1}
99
export QTWEBENGINE_REMOTE_DEBUGGING=${QTWEBENGINE_REMOTE_DEBUGGING-8080}
10+
export QTWEBENGINE_CHROMIUM_FLAGS=${QTWEBENGINE_CHROMIUM_FLAGS---remote-allow-origins=http://localhost:$QTWEBENGINE_REMOTE_DEBUGGING}
11+
1012
# The pages can be accessed by, e.g. surfing to
1113
# http://localhost:40000/_anki/pages/deckconfig.html
1214
# Useful in conjunction with tools/web-watch for auto-rebuilding.

run.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ pushd "%~dp0"
44
set PYTHONWARNINGS=default
55
set PYTHONPYCACHEPREFIX=out\pycache
66
set ANKIDEV=1
7+
set QTWEBENGINE_REMOTE_DEBUGGING=8080
8+
set QTWEBENGINE_CHROMIUM_FLAGS=--remote-allow-origins=http://localhost:8080
79

810
call tools\ninja pylib qt extract:win_amd64_audio || exit /b 1
911
.\out\pyenv\scripts\python tools\run.py %* || exit /b 1

0 commit comments

Comments
 (0)