* Replace "type": "python" with "type": "debugpy"
* Add two common tests for debugging
** All tests
** Wiki tests
** Messages tests
This commit is contained in:
smith 2024-04-29 15:53:40 -04:00 коммит произвёл GitHub
Родитель 955c3342e7
Коммит 106fc31c0e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 35 добавлений и 6 удалений

41
.vscode/launch.json поставляемый
Просмотреть файл

@ -6,7 +6,7 @@
"configurations": [
{
"name": "Kitsune",
"type": "python",
"type": "debugpy",
"request": "launch",
"django": true,
"program": "${workspaceFolder}/manage.py",
@ -15,9 +15,41 @@
"0.0.0.0:8000"
]
},
{
"name": "Kitsune Tests",
"type": "debugpy",
"request": "launch",
"django": true,
"program": "${workspaceFolder}/manage.py",
"args": [
"test"
]
},
{
"name": "Kitsune Wiki Tests",
"type": "debugpy",
"request": "launch",
"django": true,
"program": "${workspaceFolder}/manage.py",
"args": [
"test",
"kitsune.wiki.tests"
]
},
{
"name": "Kitsune Messages Tests",
"type": "debugpy",
"request": "launch",
"django": true,
"program": "${workspaceFolder}/manage.py",
"args": [
"test",
"kitsune.messages.tests"
]
},
{
"name": "Kitsune (Gunicorn)",
"type": "python",
"type": "debugpy",
"request": "launch",
"django": true,
"program": "/venv/bin/gunicorn",
@ -32,14 +64,11 @@
},
{
"name": "Attach to .vscode/debug-python",
"type": "python",
"type": "debugpy",
"request": "attach",
"connect": {
"host": "127.0.0.1",
"port": 5678
},
"autoreload": {
"enable": true
}
}
]