Skip to content

Commit

Permalink
vscode launch.json upgrade (#5967)
Browse files Browse the repository at this point in the history
* Replace "type": "python" with "type": "debugpy"
* Add two common tests for debugging
** All tests
** Wiki tests
** Messages tests
  • Loading branch information
smithellis authored Apr 29, 2024
1 parent 955c334 commit 106fc31
Showing 1 changed file with 35 additions and 6 deletions.
41 changes: 35 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"configurations": [
{
"name": "Kitsune",
"type": "python",
"type": "debugpy",
"request": "launch",
"django": true,
"program": "${workspaceFolder}/manage.py",
Expand All @@ -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",
Expand All @@ -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
}
}
]
Expand Down

0 comments on commit 106fc31

Please sign in to comment.