Skip to content

Instantly share code, notes, and snippets.

@darkmavis1980
Last active July 13, 2018 08:35
Show Gist options
  • Save darkmavis1980/c2f99fd6edfa77c91aaedbc3052e74cd to your computer and use it in GitHub Desktop.
Save darkmavis1980/c2f99fd6edfa77c91aaedbc3052e74cd to your computer and use it in GitHub Desktop.
Xdebug with VS Code & Vagrant
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"log": true,
"pathMappings": {
"/path/to/vagrant/www": "/Users/<your-user>/Code/www"
}
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}
; Enable xdebug extension module
zend_extension=/usr/lib64/php/7.1/modules//xdebug.so
; see http://xdebug.org/docs/all_settings
xdebug.remote_enable = 1
xdebug.idekey = "VSCODE"
xdebug.remote_host = 10.0.2.2
xdebug.remote_port = 9000
xdebug.remote_handler = "dbgp"
xdebug.overload_var_dump = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment