From 54e79ece3108e3644f153f4be6376f6ff2c6eb1f Mon Sep 17 00:00:00 2001 From: David Trattnig <david.trattnig@o94.at> Date: Mon, 2 Mar 2020 16:41:35 +0100 Subject: [PATCH] Ability to debug API in VSCode. --- .vscode/launch.json | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.vscode/launch.json b/.vscode/launch.json index 78196084..6dad909c 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -11,6 +11,22 @@ "program": "${workspaceFolder}/aura.py", "console": "integratedTerminal" }, + { + "name": "Aura Engine API - Run", + "type": "python", + "request": "launch", + "stopOnEntry": false, + "program": "${workspaceFolder}/api.py", + "env": { + "FLASK_APP": "${workspaceRoot}/app.py" + }, + "args": [ + "run" + ], + "debugOptions": [ + "RedirectOutput" + ] + }, { "name": "Aura Engine - Recreate Database", "type": "python", -- GitLab