Snippets

Julian Elve VS Code debugging local dev wordpress (VVV + Vagrant)

Created by Julian Elve

File launch.json Added

  • Ignore whitespace
  • Hide word diff
+{
+    "version": "0.2.0",
+    "configurations": [
+        {
+            "name": "Listen for XDebug",
+            "type": "php",
+            "request": "launch",
+            "port": 9000,
+            "localSourceRoot": "${workspaceRoot}",
+            "serverSourceRoot": "/srv/www/{SITENAME}/htdocs"
+        },
+        {
+            "name": "Launch currently open script",
+            "type": "php",
+            "request": "launch",
+            "program": "${file}",
+            "cwd": "${fileDirname}",
+            "port": 9000
+        }
+    ]
+}
HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.