Skip to content

Instantly share code, notes, and snippets.

@davidjguru
Created January 31, 2021 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidjguru/4db4815c96d5ac836a794baf51529c15 to your computer and use it in GitHub Desktop.
Save davidjguru/4db4815c96d5ac836a794baf51529c15 to your computer and use it in GitHub Desktop.
Drupal 8 || 9: Enabling debugging in VSCode for DDEV-Local deploys
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"hostname": "0.0.0.0",
"port": 9000,
"pathMappings": {
"/var/www/html": "${workspaceRoot}"
}
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment