Browse Source

refactor: keep vscode debug configuration

Junior L. Botelho (JLB) 2 years ago
parent
commit
b29d7e0d91
2 changed files with 26 additions and 1 deletions
  1. 0 1
      .gitignore
  2. 26 0
      .vscode/launch.json

+ 0 - 1
.gitignore

@@ -1,3 +1,2 @@
-/.vscode
 /config.php
 /opensearch.xml

+ 26 - 0
.vscode/launch.json

@@ -0,0 +1,26 @@
+{
+  // Use IntelliSense to learn about possible attributes.
+  // Hover to view descriptions of existing attributes.
+  "version": "0.2.0",
+  "configurations": [
+    {
+      "name": "Debug Server",
+      "type": "php",
+      "request": "launch",
+      "runtimeArgs": [
+        "-dxdebug.mode=debug",
+        "-dxdebug.start_with_request=yes",
+        "-S",
+        "localhost:0"
+      ],
+      "program": "",
+      "cwd": "${workspaceRoot}",
+      "port": 9003,
+      "serverReadyAction": {
+        "pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
+        "uriFormat": "http://localhost:%s",
+        "action": "openExternally"
+      }
+    }
+  ]
+}