Просмотр исходного кода

meta(launch-configs): Add Python debug server launch config (#40970)

When launched, starts up the devserver in debug mode, which makes it
possible to use VS Code's interactive debugger.
George Gritsouk 2 лет назад
Родитель
Сommit
861edb653c
1 измененных файлов с 40 добавлено и 34 удалено
  1. 40 34
      .vscode/launch.json

+ 40 - 34
.vscode/launch.json

@@ -1,36 +1,42 @@
 {
-    // Use IntelliSense to learn about possible attributes.
-    // Hover to view descriptions of existing attributes.
-    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
-    "version": "0.2.0",
-    "configurations": [
-        {
-          "name": "sentry frontend",
-          "type": "chrome",
-          "request": "launch",
-          "url": "http://dev.getsentry.net:8000",
-          "webRoot": "${workspaceRoot}/src/sentry/static/sentry/app"
-        },
-        {
-          "name": "sentry backend",
-          "type": "python",
-          "request": "launch",
-          "stopOnEntry": true,
-          "program": "${workspaceRoot}/.venv/bin/sentry",
-          "args": ["devserver"],
-          "cwd": "${workspaceRoot}",
-          "debugOptions": ["WaitOnAbnormalExit", "WaitOnNormalExit", "RedirectOutput"]
-        },
-        {
-            "name": "jest",
-            "type": "node",
-            "request": "launch",
-            "protocol": "inspector",
-            "program": "${workspaceFolder}/node_modules/.bin/jest",
-            "internalConsoleOptions": "openOnSessionStart",
-            "args": [
-                "--runInBand"
-            ]
-        }
-    ]
+  // Use IntelliSense to learn about possible attributes.
+  // Hover to view descriptions of existing attributes.
+  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
+  "version": "0.2.0",
+  "configurations": [
+    {
+      "name": "sentry frontend",
+      "type": "chrome",
+      "request": "launch",
+      "url": "http://dev.getsentry.net:8000",
+      "webRoot": "${workspaceRoot}/src/sentry/static/sentry/app"
+    },
+    {
+      "name": "sentry backend",
+      "type": "python",
+      "request": "launch",
+      "stopOnEntry": true,
+      "program": "${workspaceRoot}/.venv/bin/sentry",
+      "args": ["devserver"],
+      "cwd": "${workspaceRoot}",
+      "debugOptions": ["WaitOnAbnormalExit", "WaitOnNormalExit", "RedirectOutput"]
+    },
+    {
+      "name": "sentry backend debug",
+      "type": "python",
+      "request": "launch",
+      "program": "${workspaceRoot}/.venv/bin/sentry",
+      "args": ["devserver", "--debug-server", "--no-pretty"],
+      "cwd": "${workspaceRoot}"
+    },
+    {
+      "name": "jest",
+      "type": "node",
+      "request": "launch",
+      "protocol": "inspector",
+      "program": "${workspaceFolder}/node_modules/.bin/jest",
+      "internalConsoleOptions": "openOnSessionStart",
+      "args": ["--runInBand"]
+    }
+  ]
 }