Skip to content

Instantly share code, notes, and snippets.

@hungtrinh
Last active August 21, 2018 09:46
Show Gist options
  • Save hungtrinh/7cc6e67226ec73d7b238812e38ae5ecf to your computer and use it in GitHub Desktop.
Save hungtrinh/7cc6e67226ec73d7b238812e38ae5ecf to your computer and use it in GitHub Desktop.
xdebug remote vscode config
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug - Remote",
"type": "php",
"request": "launch",
"port": 9000,
"pathMappings": {
"/var/www/html/your_app_on_server": "${workspaceFolder}",
}
},
{
"name": "Launch currently open script - Local",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000,
"env": {
"XDEBUG_CONFIG": "idekey=session_name"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment