anki/.vscode.dist/launch.json
RumovZ ebc6c0847a
HMR on Windows (#3144)
* Enable hot module reloading on Windows

* Update VSC launch.json and tasks.json

* Bind vite server to 127.0.0.1 (dae)

Our frontend connects via IP, and on Windows, this fails if the server
is bound to 'localhost' instead.
2024-04-17 21:23:34 +10:00

39 lines
1.3 KiB
JSON

{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Run",
"type": "debugpy",
"request": "launch",
"program": "tools/run.py",
"args": [
// "-p",
// "My test profile"
],
"console": "integratedTerminal",
"cwd": "${workspaceFolder}",
"python": "${workspaceFolder}/out/pyenv/bin/python",
"windows": {
"python": "${workspaceFolder}/out/pyenv/scripts/python.exe"
},
"env": {
"PYTHONWARNINGS": "default",
"PYTHONPYCACHEPREFIX": "out/pycache",
"ANKIDEV": "1",
"QTWEBENGINE_REMOTE_DEBUGGING": "8080",
"QTWEBENGINE_CHROMIUM_FLAGS": "--remote-allow-origins=http://localhost:8080",
"RUST_BACKTRACE": "1",
// "TRACESQL": "1",
// "HMR": "1",
"ANKI_API_PORT": "40000",
"ANKI_API_HOST": "127.0.0.1"
},
"justMyCode": true,
"preLaunchTask": "ninja"
}
]
}