Skip to content

Instantly share code, notes, and snippets.

@marlonfan
Created October 20, 2017 05:47
Show Gist options
  • Save marlonfan/813ba11d3bf676f9ff0efa797fcc9063 to your computer and use it in GitHub Desktop.
Save marlonfan/813ba11d3bf676f9ff0efa797fcc9063 to your computer and use it in GitHub Desktop.
vscode debug's config
{
"version": "0.2.0",
"configurations": [{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9009,
"localSourceRoot": "${workspaceRoot}/public",
"serverSourceRoot": "/home/vagrant/Code/forzu-be/public"
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}
zend_extension=xdebug.so
xdebug.remote_enable = 1
xdebug.remote_autostart = 1
xdebug.remote_connect_back = 1
xdebug.remote_port = 9009
xdebug.max_nesting_level = 512
xdebug.remote_host = 192.168.30.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment