Skip to content

Instantly share code, notes, and snippets.

@podarok
Created December 24, 2020 08:10
Show Gist options
  • Save podarok/732ba655939ba9be3304e57b9bb5b2c3 to your computer and use it in GitHub Desktop.
Save podarok/732ba655939ba9be3304e57b9bb5b2c3 to your computer and use it in GitHub Desktop.
Open Y Visual Studio Code xdebug configuration. When using Vagrant based VM
{
// 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": "Listen for XDebug",
"type": "php",
"request": "launch",
"pathMappings": {
"/var/www/docroot": "${workspaceRoot}/docroot",
},
"port": 9000,
"log": false
},
{
"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