Skip to content

Instantly share code, notes, and snippets.

@vistar
Last active September 17, 2022 09:22
Show Gist options
  • Save vistar/363a15bdba86a3f90db2ec8578be654f to your computer and use it in GitHub Desktop.
Save vistar/363a15bdba86a3f90db2ec8578be654f to your computer and use it in GitHub Desktop.
Vscode settings for xdebug in docksal
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for Xdebug",
"type": "php",
"request": "launch",
"port": 9000,
// server -> local
"pathMappings": {
"/var/www/web": "${workspaceFolder}/web"
},
"xdebugSettings": {
"show_hidden": 1
}
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 0,
"runtimeArgs": [
"-dxdebug.start_with_request=yes"
],
"env": {
"XDEBUG_MODE": "debug,develop",
"XDEBUG_CONFIG": "client_port=${port}"
}
},
{
"name": "Launch Built-in web server",
"type": "php",
"request": "launch",
"runtimeArgs": [
"-dxdebug.mode=debug",
"-dxdebug.start_with_request=yes",
"-S",
"localhost:0"
],
"program": "",
"cwd": "${workspaceRoot}",
"port": 9000,
"serverReadyAction": {
"pattern": "Development Server \\(http://localhost:([0-9]+)\\) started",
"uriFormat": "http://localhost:%s",
"action": "openExternally"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment