From 106fc31c0e823143c56bc3d75d974e814a84a1c3 Mon Sep 17 00:00:00 2001 From: smith Date: Mon, 29 Apr 2024 15:53:40 -0400 Subject: [PATCH] vscode launch.json upgrade (#5967) * Replace "type": "python" with "type": "debugpy" * Add two common tests for debugging ** All tests ** Wiki tests ** Messages tests --- .vscode/launch.json | 41 +++++++++++++++++++++++++++++++++++------ 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index d4e8cf72f17..a390363e4a9 100644 --- a/.vscode/launch.json +++ b/.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 } } ]