Skip to content

Instantly share code, notes, and snippets.

@uniacid
Created December 21, 2017 17:24
Show Gist options
  • Save uniacid/ce07471b1befbf438cb3b7d0e8ffc5a3 to your computer and use it in GitHub Desktop.
Save uniacid/ce07471b1befbf438cb3b7d0e8ffc5a3 to your computer and use it in GitHub Desktop.
vscode php debug launch.json
{
// 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",
"port": 9001
},
{
"name": "Listen for XDebug Gemaire",
"type": "php",
"request": "launch",
"port": 9001,
"pathMappings": {
"/var/www/html": "${workspaceRoot}"
}
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
},
{
"type": "node",
"request": "attach",
"name": "Docker: Attach to Node",
"port": 9001,
"address": "localhost",
"localRoot": "${workspaceFolder}",
"remoteRoot": "/var/www/html",
"protocol": "inspector"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment