Last active
July 13, 2018 08:35
-
-
Save darkmavis1980/c2f99fd6edfa77c91aaedbc3052e74cd to your computer and use it in GitHub Desktop.
Xdebug with VS Code & Vagrant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 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