From 5035f9e0018467d8e01c51ace739072465fb5757 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 7819608..6dad909 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